Bastien Bouclet
287a4a12e2
GUI: Fix crash when opening the save name dialog
...
The changes in 1dce33dd9f introduced a
case where the width of widgets would not be set. This commit reverts
the offending changes and introduces a different fix for the original
issue.
Only recompute the width/height of a stack if it is not explicitly set.
Fixes #11214 .
2019-10-19 10:50:56 +02:00
Bastien Bouclet
1dce33dd9f
GUI: Fix launcher layout for small widths
...
* Testing if a widget can be centered was ignoring the padding.
* Only resize a layout based on its content if it was not explicitely
sized by its parent. Fixes the logo causing incorrect layout
computations when the window width is lower than the image width.
2019-10-17 19:33:50 +02:00
Eugene Sandulenko
a612b0a173
GRAPHICS: Restore layout debugging capabilities
2016-06-01 13:16:12 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Eugene Sandulenko
b0db1b5ed0
Implement FR#2507667: "GUI: Improve PopupWidget rendering / theme layouting".
...
- Split out label from PopUp widget
- Aligned every widget on all layouts so GUI becomes to look nice again
- Moved textHAlign to layout properties
svn-id: r41266
2009-06-06 17:52:44 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Max Horn
7d3c94a9ca
Added some comments to ThemeLayoutStacked::reflowLayoutH/V
...
svn-id: r35868
2009-01-14 21:16:21 +00:00
Max Horn
d34a952e5b
Renamed various ThemeLayout methods for clarity; removed unused setSpacing method, and moved _spacing to class ThemeLayoutStacked
...
svn-id: r35867
2009-01-14 20:58:41 +00:00
Max Horn
69f4b7a383
Got rid of ThemeLayout::getDialogData; added some comments, asserts; moved getParentW & getParentH to class ThemeLayoutStacked
...
svn-id: r35571
2008-12-27 14:30:30 +00:00
Max Horn
751df013e1
If more than 8 items have to be resized in a stacked theme layout, abort with an error (instead of silently trashing the stack)
...
svn-id: r35549
2008-12-26 01:13:08 +00:00
Max Horn
131cb5a05a
Merged ThemeLayoutHorizontal and ThemeLayoutVertical into a new class ThemeLayoutStacked (suggestions for a better name are welcome); stored padding data in a Common::Rect
...
svn-id: r35548
2008-12-26 01:08:49 +00:00
Max Horn
c59f5919a2
ThemeLayout::getParentW was calling getHeight instead of getWidth by mistake (though this didn't seem to cause any problems anywhere... ?)
...
svn-id: r35547
2008-12-26 00:57:30 +00:00
Max Horn
c9105aa58f
Fix for bug #2210082 : GUI: Crash in GMM when changing scale factor
...
svn-id: r35546
2008-12-26 00:43:52 +00:00
Max Horn
c3aec16033
Some 'cleanup' of Gui::ThemeLayout
...
svn-id: r35545
2008-12-26 00:26:34 +00:00
Jordi Vilalta Prat
b1999a2a16
Fixed indentation and removed whitespaces at the end of line
...
svn-id: r35481
2008-12-22 11:22:15 +00:00
Max Horn
55da1fdd29
Renamed ThemeLayout::buildCopy to buildCopy::makeClone
...
svn-id: r34881
2008-11-03 16:38:47 +00:00
Max Horn
6893418942
Fixing some compiler warnings
...
svn-id: r34341
2008-09-05 11:32:23 +00:00
Vicent Marti
dcc72fe29e
Massive refactoring/cleanup on the theme engine/parser.
...
svn-id: r34285
2008-09-02 17:51:08 +00:00