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

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

[Octave-bug-tracker] [bug #53775] uimenu grows figure, and refuses posit


From: AlanRobertClark
Subject: [Octave-bug-tracker] [bug #53775] uimenu grows figure, and refuses position reset.
Date: Fri, 27 Apr 2018 23:25:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?53775>

                 Summary: uimenu grows figure, and refuses position reset. 
                 Project: GNU Octave
            Submitted by: alanrobertclark
            Submitted on: Sat 28 Apr 2018 03:25:12 AM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: AlanRobertClark
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

As per 50368, under --no-gui (Qt), each top level uimenu adds height to the
figure. If 'Position' is recorded, and reset *From Commandline*, issue is
resolved. But *NOT* if from the m-file.


CFh=figure;
pos=get(CFh, 'position');
uimenu(CFh,'label','Top1');pause(1);
uimenu(CFh,'label','Top2');pause(1);
uimenu(CFh,'label','Top3');pause(1);
uimenu(CFh,'label','Top4');pause(1);
uimenu(CFh,'label','Top5');pause(1);
set(CFh, 'menuBar', 'none');
set(CFh, 'position', pos);


If the last line is repeated from commandline, the figure is correct. 
pos = [300   200   560   420]
get(CFh, 'Position') = [300    80   560   540]

So there is an explicit problem with set(CFh, 'position'... which is not
happening. Tried drawnow, reset, pause etc...




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53775>

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




reply via email to

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