bugGNU Octave - Bugs: bug #49665, uicontrol with normalized units...

 
 

bug #49665: uicontrol with normalized units invalid resize after (un)maximize

Submitter:  kire pudsje <kpc>
Submitted:  Tue 22 Nov 2016 01:35:27 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  kpc Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Nov 2016 07:50:07 PM UTC, comment #4: 

Ok thanks.

Pantxo Diribarne <pantxo>
Group Member
Tue 22 Nov 2016 07:46:52 PM UTC, comment #3: 

Just close down this topic. I do not experience any problem when resizing. But the other bug mentions problems when making a big resize. Maximizing can be considered a very big resize, so it probably is another manifestation of the same problem. Therefore I agree it is a duplicate.

As to the inactive problem. I will perform more checks and with different theme engines, also octave vs matlab and win vs linux. If needed I will issue a dedicated bug report.

kire pudsje <kpc>
Tue 22 Nov 2016 07:17:30 PM UTC, comment #2: 

Hi,

Thanks for your report. I am not sure about the "inacative" vs "visible" issue but the resizing not working properly is a known issue, see bug #44472.

Can I close this report as duplicate or do you think the second issue deserves this report to be simply retitled?

Pantxo Diribarne <pantxo>
Group Member
Tue 22 Nov 2016 06:58:23 PM UTC, comment #1: 

As to my second question. This was related to the theme the company installed. Furthermore, I considered 'off' and 'inactive' to be synonyms. Turns out that the intended behaviour (of Matlab) is actually greyed out respectively normal style but inactive. Now with the default theme, both off and inactive are greyed out for a checkbox, but for a pushbutton, it is always drawn normal, regardless of state.

kire pudsje <kpc>
Tue 22 Nov 2016 01:35:27 AM UTC, original submission:  

When using normalized units, resizing a window causes the uicontrols to track reasonably well (sometimes a few pixels off, but never mind that).
However when the window is (un)maximized, the uicontrol elements are not correctly resized. Dragging the border of the window (ie resize) causes the elements to be positioned properly again.


h = figure(1, 'Position', [200,100,300,300])
uicontrol(h, 'Units', 'normalized', 'Position', [0,0,.2,1]);
axes('Parent', h, 'Units', 'normalized', 'Position', [.2,0,.8,1]);


One other thing, of which I am not sure if this is a bug. I noticed when setting the enabled property in a uicontrol checkbox makes it unresponsive, as would be expected. However it is still drawn the normal way. I would have expected it to be drawn 'greyed out'.

kire pudsje <kpc>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by kpc (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-22 pantxo Open/ClosedOpen Closed
    2016-11-22 pantxo CategoryPlotting Plotting with OpenGL
        Operating SystemMicrosoft Windows Any
    2016-11-22 pantxo StatusNone Duplicate
    2016-11-22 pantxo Dependencies- Depends on bugs #44472

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code