Better default positioning of UI components / panes
@jeff
Submitted by Jeff F.T. Assigned to Jeff F.T. @jeff
Description
In pitivi's mainwindow.py, at the end of the createUi method, we have code trying to auto-guess sane defaults to position the various hpanes/vpanes.
Except that it's a bit crap. There ought to be a better "magic" calculation for it. Maybe the only way is to assume that it should be divided like this:
---------------------------------
| || || |
| <-33%-> || <-33%-> || <-33%-> |
| || || |
| || || |
=================================
| ^^^ |
| 50% |
| vvv |
| |
---------------------------------
Not sure how well it scales for the following screen resolutions:
- 1024x768
- 1280x720
- 1920x1080
- "retina" displays of the future
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=702507
Edited by Alexandru Băluț