octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54678] Figure's Position when MenuBar is none


From: Guillaume
Subject: [Octave-bug-tracker] [bug #54678] Figure's Position when MenuBar is none
Date: Tue, 18 Sep 2018 06:29:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.gnu.org/bugs/?54678>

                 Summary: Figure's Position when MenuBar is none
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Tue 18 Sep 2018 10:29:54 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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


F = figure ('Position',[650 350 620 500], 'MenuBar','figure');
get (F, 'Position')

F = figure ('Position',[650 350 620 500], 'MenuBar','none');
get (F, 'Position')


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


octave:1> F = figure ('Position',[650 350 620 500], 'MenuBar','figure');
octave:2> get (F, 'Position')
ans =
   650   350   620   500
octave:3> 
octave:3> F = figure ('Position',[650 350 620 500], 'MenuBar','none');
octave:4> get (F, 'Position')
ans =
   650   350   620   500
octave:5> 
octave:5> get (F, 'Position') # asking again manually
ans =
   650   350   620   410


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).




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54678>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]