bugGNU Octave - Bugs: bug #49551, uipanel title hides/obscures...

 
 

bug #49551: uipanel title hides/obscures uipaned contents (qt)

Submitter:  -X- <jsh>
Submitted:  Mon 07 Nov 2016 08:21:12 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 4.0.3 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Jul 2019 04:11:05 PM UTC, comment #1: 

I think the issue I am observing is related to this report: the space used by the title of a uipanel is not taken into account when determining the available size of its content. I attach a screenshot illustrating the issue by comparing Octave and Matlab.


h = figure;
p = uipanel (h,...
    'Units','normalized',...
    'Position',[0 0 1 0.5],...
    'BackgroundColor',[1 0 0],...
    'BorderType','none',...
    'Title','PANEL');
u = uicontrol (p,...
    'Style','listbox',...
    'Units','normalized',...
    'Position',[0 0 1 1],...
    'BackgroundColor',[0 0 1],....
    'String','OCTAVE');




Guillaume <gyom>
Mon 07 Nov 2016 08:21:12 AM UTC, original submission:  

uipanel titles can completely obscure the top contents in the panel (see the top panel in the attached code). Matlab handles this by moving the uipanel contents/top border to a few pixels below the lower edge of the uipanel text.


f = figure( 'toolbar', 'none' );
p1 = uipanel( 'parent', f, 'position', [0 1-1/8 1 1/8], 'title', 'title1' );
p2 = uipanel( 'parent', f, 'position', [0 0 1 1/2], 'title', 'title2' );
c1 = uicontrol( 'parent', p1, 'units', 'normalized', 'position', [0 0 1 1], 'style', 'popupmenu', 'string', {'1' '2' '3' '4' '5'} );
c2 = uicontrol( 'parent', p2, 'units', 'normalized', 'position', [0 0 1 1], 'style', 'popupmenu', 'string', {'a' 'b' 'c' 'd' 'e'} );


-X- <jsh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #47232:  uipanel.png added by gyom (32KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gyom (Updated the item)
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by jsh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-17 gyom Attached File- Added uipanel.png, #47232
    2018-11-02 pantxo CategoryGUI Plotting with OpenGL

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code