VirtualBox

Opened 8 years ago

Closed 5 years ago

#16578 closed defect (obsolete)

When starting VB the titlebar is off screen

Reported by: pquiring Owned by:
Component: GUI Version: VirtualBox 5.1.18
Keywords: Cc:
Guest type: other Host type: other

Description

I move from different screen sizes and when I start VB on a large res screen and then later on a smaller one VB tries to keep the same size which causes the titlebar to be off screen. The only way to fix it is to adjust the window size by grabbing the bottom corner and adjusting it which causes the titlebar to pop back into view. If VB was full screen it doesn't seem to happen, only when it was normal window but moving from large screen to small one.

Change History (3)

comment:1 by pquiring, 8 years ago

I don't mean "move" as in multi-monitor setup. It's when I start the app on different attached monitors (work / home).

comment:2 by IndyJones, 8 years ago

The issue is easily to reproduce (at least on Windows but should work on all platforms that have a window title bar):

  • Open the VM log window and maximize it
  • Close the VM log window
  • Change the desktop resolution to a smaller resolution than the current one
  • Open the VM log window again
  • Hit the "restore down" button on the window
  • The Window's title bar will now be off screen

The problem is that VBox mixes coordinate systems in the window positioning. I.e. when looking at QIMainWindow::restoreGeometry the "old" approach for OSX uses move/resize which include the title bar. VBoxGlobal::setTopLevelGeometry however uses QWidget::setGeometry which does not include the title bar. If you now set i.e. y=0 using setGeometry it will put the title bar off screen.

A good explanation of the Qt widget geometry functions can be found here: http://doc.qt.io/qt-5/application-windows.html#window-geometry

comment:3 by aeichner, 5 years ago

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette