bugGNU Octave - Bugs: bug #54678, Figure's Position when MenuBar is...

 
 

bug #54678: Figure's Position when MenuBar is none

Submitted by:  Guillaume <gyom>
Submitted on:  Tue 18 Sep 2018 10:29:54 AM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

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)

Wed 19 Sep 2018 11:41:58 AM UTC, comment #6:

Thanks again Pantxo, works great!

Guillaume <gyom>
Wed 19 Sep 2018 11:01:17 AM UTC, comment #5:

I pushed the updated patch here:

http://hg.savannah.gnu.org/hgweb/octave/rev/6109f302cf43

Closing report as fixed.

Pantxo Diribarne <pantxo>
Project Member
Wed 19 Sep 2018 10:38:19 AM UTC, comment #4:

Thanks for testing Guillaume. Looks like I did not attach the latest version of the patch. Anyway, I will cleanup the patch and push it soon.

Pantxo Diribarne <pantxo>
Project Member
Wed 19 Sep 2018 08:52:01 AM UTC, comment #3:

Thanks @Pantxo!

When I first applied the patch, I got an error at compilation:

I then removed the following from Figure.cc:

and it compiled fine. With the patch, the issue I mentioned disappear and everything seem to be working fine! Thanks!

Guillaume <gyom>
Tue 18 Sep 2018 08:00:08 PM UTC, comment #2:

@Guillaume: I attached a patch that fixes the original issue for me (and simplifies the "menubar" property handling). Can you test it?

(file #45041)

Pantxo Diribarne <pantxo>
Project Member
Tue 18 Sep 2018 02:48:20 PM UTC, comment #1:

Confirmed, looks like I did not check this case ... I'll look into this.

The workaround for the time being is to change the "menubar" property after the figure has been constructed.

Pantxo Diribarne <pantxo>
Project Member
Tue 18 Sep 2018 10:29:54 AM UTC, original submission:

Since recently in dev (since 25878:bb4af245dff7 perhaps), the size of a figure is not correct when MenuBar is disabled. Running the following:

displays a second figure smaller in height (the drawable area):

While physically smaller, the returned Position of the second figure is the asked one. If one then asks for the Position again, the return position now differs and seem to correspond to the one actually used. The drawable area seems to have the asked Position minus the size of all of the menus (top and bottom).

Guillaume <gyom>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45041:  uimenus3.patch added by pantxo (8KiB - 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 pantxo (Posted a comment)
  • -email is unavailable- added by gyom (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-19 pantxo StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2018-09-18 pantxo Attached File- => Added uimenus3.patch, #45041
        StatusConfirmed => Patch Submitted
    2018-09-18 pantxo CategoryPlotting => Plotting with OpenGL
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.4