bugGNU Octave - Bugs: bug #53709, uipanel positioned incorrectly...


bug #53709: uipanel positioned incorrectly after window maximazation

Submitted by:  None
Submitted on:  Fri 20 Apr 2018 01:13:18 PM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  Fixed Assigned to:  None
Originator Name:  Tony Richardson Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  dev
Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Mon 04 Mar 2019 12:33:26 PM UTC, comment #10: 

Is there any chance this could be considered for the stable branch? The fix seems to be safe and it's a great improvement for any figure containing ui* elements.

Guillaume <gyom>
Sun 03 Mar 2019 07:15:51 PM UTC, comment #9: 

Works for me. Thanks.

Markus Mützel <mmuetzel>
Project Member
Sun 03 Mar 2019 05:25:53 PM UTC, comment #8: 

@Markus: Thanks, I pushed the following change to handle uitables:


Pantxo Diribarne <pantxo>
Project Member
Sun 03 Mar 2019 01:38:28 PM UTC, comment #7: 

This works perfectly for uipanels and uicontrols now.
For uitable (e.g. "demo uitable 1") the position still lags one (un-)maximization step behind.

Markus Mützel <mmuetzel>
Project Member
Sat 02 Mar 2019 10:02:56 PM UTC, comment #6: 

@Guillaume: Thanks, I pushed the patch here:


Closing report as fixed.

Pantxo Diribarne <pantxo>
Project Member
Fri 01 Mar 2019 09:32:11 AM UTC, comment #5: 

Your patch seems to works fine, Pantxo. That's actually a big improvement as it also fixes the issue of the position of ui* elements when the figure is manually resized (not just (un)maximized).
Thank you!

Guillaume <gyom>
Thu 28 Feb 2019 10:13:16 PM UTC, comment #4: 

I attached a patch that I think fixes both uipanel and uicontrol resizing after (Un)Maximizing the window.

(file #46376)

Pantxo Diribarne <pantxo>
Project Member
Thu 28 Feb 2019 09:27:45 AM UTC, comment #3: 

The same applies to Uicontrol objects with maximize/restore window.

Mario Mielenhausen <mariomie>
Fri 02 Nov 2018 11:59:31 AM UTC, comment #2: 

Yes, until there is a more appropriate category, all Qt graphics toolkit related bugs should go in "Plotting with OpenGL". "GUI" is for the rest of the user interface.

Pantxo Diribarne <pantxo>
Project Member
Fri 02 Nov 2018 11:54:54 AM UTC, comment #1: 

I just noticed that the category for this bug is "Plotting with OpenGL".  That is incorrect.  This happens when using the qt graphics toolkit.

Tony Richardson <amrichardson>
Fri 20 Apr 2018 01:13:18 PM UTC, original submission:  

I create a panel using:
  uipanel ( 'position', [.67 0.1 .30 .50 ] );
After maximization of the graphics window the panel does not maintain its relative position within the window.  When the window is restored to its original size the panel is no longer visible.  (I assume it is outside the figure window somewhere.)

I am able to work around the problem by adding a listener to
the 'position' property of the figure handle and then
re-setting the panel position within the listener.

I have only tested this under Windows with the Qt toolkit.




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

Attach Files:

Attached Files
file #46376:  maximize_uixxx.patch added by pantxo (3KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by mariomie (Posted a comment)
  • -email is unavailable- added by amrichardson (Posted a comment)
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-02 pantxo StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2019-02-28 pantxo Attached File- => Added maximize_uixxx.patch, #46376
        StatusConfirmed => Patch Submitted
        Release4.2.2 => dev
        Operating SystemMicrosoft Windows => Any
    2018-11-02 pantxo CategoryGUI => Plotting with OpenGL
        StatusNone => Confirmed
        Summarypanel positioned incorrectly after window maximazation => uipanel positioned incorrectly after window maximazation

    Back to the top

    Powered by Savane 3.5