bugGNU Octave - Bugs: bug #55048, [GUI] Undocked Variable editor...

 
 

bug #55048: [GUI] Undocked Variable editor subpanes cannot be resized

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Sun 18 Nov 2018 04:20:50 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 12 Sep 2019 12:23:02 PM UTC, comment #18: 

Sorry, I accidentally posted the below to wrong list.

Michael Godfrey <godfrey>
Group Member
Thu 12 Sep 2019 12:19:28 PM UTC, comment #17: 
Michael Godfrey <godfrey>
Group Member
Thu 12 Sep 2019 12:23:37 AM UTC, comment #16: 

In the meantime I have changed the window title to


Variable Editor: <variable_name>


in order to depict the relation of floating subpanes to the variable editor.

Torsten Lilge <ttl>
Group Member
Wed 11 Sep 2019 07:08:52 PM UTC, comment #15: 

Thanks Torsten,

looks good now. That such a small fix makes so much difference.

The window titles of subpanes now are the pertinent variable names rather than "Variable Editor" so the chances for confusion are limited IMO. In Matlab it is largely similar so we're a bit more "compatible" now.

I think this bug report can now be closed. It can always be reopened if required.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 10 Sep 2019 02:30:04 AM UTC, comment #14: 

With changeset http://hg.savannah.gnu.org/hgweb/octave/rev/44c72e41d468 window decorations are added to floating VE subpanes. This provides thicker borders for grabbing them by the mouse. However, issues are:

  • Window decorations are not working on every window manager as we have already recognized with floating "main" dock widgets of the gui
  • Now, VE subpanes have the same look like floating main dock widgets, which not really improves the overview over all gui widgets.


Torsten Lilge <ttl>
Group Member
Sun 31 Mar 2019 09:26:30 PM UTC, comment #13: 

Thanks Mike, setting OS -> "Any"

"_awkward but working_" - sure, and admittedly resizing undocked VE subpanes wouldn't be a feature that will be used very often I suppose. (Although I "need" to do that quite often and do it regularly in Matlab)

OTOH, IMO it does need improvement. This is unexpected behavior for many a user.

Priority -> Low

(Still thinking about a better title)

Philip Nienhuis <philipnienhuis>
Group Member
Sun 31 Mar 2019 08:52:10 PM UTC, comment #12: 


> You're right, but it takes a steady hand to be able to resize undocked subpanes.
> If you hadn't written this comment I wouldn't have found out, a.o., because of the mouse cursor not changing appearance.


That looks to me like the exact same behavior I see on Debian, which I guess I would call awkward but working. So I think the behavior is identical, IOW this is not a Windows specific behavior. It's just the way that Qt presents floating panels without window decoration.

Mike Miller <mtmiller>
Group Member
Sun 31 Mar 2019 08:06:43 PM UTC, comment #11: 

BTW it is probably a fairly "new" thing (< 1 or 2 yrs old) as AFAIR subpanes could be resized more easily.

Philip Nienhuis <philipnienhuis>
Group Member
Sun 31 Mar 2019 08:03:41 PM UTC, comment #10: 

@Torsten,
You're right, but it takes a steady hand to be able to resize undocked subpanes.
If you hadn't written this comment I wouldn't have found out, a.o., because of the mouse cursor not changing appearance.

Are you implying nothing can be done about this (on Windows)?

In the mean time I'll think about a better bug report title

Philip Nienhuis <philipnienhuis>
Group Member
Sun 31 Mar 2019 07:15:39 PM UTC, comment #9: 

I have just tested a recent build on Windows 7. Floating variable panes can be resized at all sides, but the border for resizing with the mouse only seems to be 1px thick and the mouse cursor does not change into the typical one for resizing.

From some internet resources, e.g., https://forum.qt.io/topic/60122/increase-floating-qdockwidget-resize-margin-size, this is a known issue of some window managers and is not handled by qt (or the application using qt).

Torsten Lilge <ttl>
Group Member
Tue 05 Mar 2019 09:25:09 PM UTC, comment #8: 

OK, so this remains a Windows-only bug report.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 05 Mar 2019 08:50:27 PM UTC, comment #7: 

Seems like it is working as intended to me. The variable panes are floating Qt dock widgets, so they have no window decoration, and can only be resized by dragging very near the edges.

I can resize on my Debian system by dragging on any of the sides or corners, including the top edge and the top corners.

Mike Miller <mtmiller>
Group Member
Sun 03 Mar 2019 04:20:54 PM UTC, comment #6: 

The look and feel is fine with me, it's more the behavior.

As even on Linux resizing by dragging doesn't work on all sides (i.e., not the top subpane border), shall I set 'Operating System' => "Any" ?

Philip Nienhuis <philipnienhuis>
Group Member
Sun 03 Mar 2019 11:26:10 AM UTC, comment #5: 

The subpanes look the same on my system. In contrast to the dock widgets of Octave's main window, the variable subpanes are ordinary Qt dock widgets which do not have any window decoration. This is intended in order to have a clear "hierarchy" between the main dock widgets and their subwidgets, if exisiting.

Torsten Lilge <ttl>
Group Member
Sun 03 Mar 2019 10:08:29 AM UTC, comment #4: 

Ah OK I was a little confused by (in comment #1)

on all sides and corners of the undocked variable pane


The subpane has just two buttons (Dock & Close), see attached pic, and they do work.
Dan commented (in that bug report discussion I referred to) that VE subpanes lack window decorations, which to me looks like an accurate observation.



Philip Nienhuis <philipnienhuis>
Group Member
Sat 02 Mar 2019 02:57:53 PM UTC, comment #3: 

Yes, I was talking about a single variale pane, too, not the entire VE dock widget.

Is it at least possible to use the general windows menu (close, maximize, minimize, move, resize etc.) to resize the pane on windows?

Torsten Lilge <ttl>
Group Member
Sat 02 Mar 2019 11:58:46 AM UTC, comment #2: 


works on all sides and corners of the undocked variable pane.

The bug is about SUBpanes, not the entire VE pane, and on Windows.

(On Windows) just undock a subpane (drag it out the undocked or a docked VE pane onto the desktop), you don't even need to undock the entire VE pane for that, and try again.

On my Mageia-6 Linux it works marginally better. But there:

- resizing only works on the left, right and bottom subpane borders, not on the top one (ISTR I reported that already in passing in a long discussion with Dan in another bug report about the VE)

- when dragged out of the docked VE pane, resizing only works within the sizes of the original docked subpane. IOW, I can't drag the borders to make the subpane bigger than it was in the docked VE pane. When dragging out of an undocked VE pane, the borders can be dragged to make the subpane any size.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 02 Mar 2019 11:17:57 AM UTC, comment #1: 

On my Gnome desktop the cursor never changes into a resize cursor. Anyhow, resizing by mouse works on all sides and corners of the undocked variable pane.

Is it possible to resize the pane on windows by using the window menu (Alt+Space in Gnome but I do not remember the shortcut for windows)?

Torsten Lilge <ttl>
Group Member
Sun 18 Nov 2018 04:20:50 PM UTC, original submission:  

To replicate:

1. In the GUI, type:

a = rand (3)
b = rand (3)

2. Then, doubleclick a and b in the Workspace pane (they'll show up in the Variable editor).

3. Undock the Variable editor pane.

4. Undock the Variable editor "b" subpane.

5. Try to resize the undocked "b" subpane. Nowhere on any side does a resize cursor appear. So no resizing is possible. it keeps the size it had when docked in the Variable Editor pane.
Moving the subpane around by dragging its upper toolbar (what is it, title bar?) does work.

On Linux (Mageia-6 with KDE/Plasma) the resize cursor only appears (and works) on the lower and left/right sides and lower corners. I think it should also work on the subpane's upper side.

Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #46395:  bug55408_A.PNG added by philipnienhuis (25KiB - image/png)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by philipnienhuis (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-11 philipnienhuis StatusNone Fixed
        Open/ClosedOpen Closed
    2019-09-10 ttl Dependencies- bugs #56865 is dependent
    2019-03-31 philipnienhuis Priority5 - Normal 3 - Low
        Operating SystemMicrosoft Windows Any
    2019-03-03 philipnienhuis Attached File- Added bug55408_A.PNG, #46395

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code