Cleanup. We no longer need these widget size parameters.
svn-id: r22798
This commit is contained in:
parent
acb3ff742b
commit
8975ba8963
11 changed files with 15 additions and 33 deletions
|
@ -32,8 +32,6 @@ namespace GUI {
|
|||
ListWidget::ListWidget(GuiObject *boss, String name)
|
||||
: EditableWidget(boss, name), CommandSender(boss) {
|
||||
|
||||
WidgetSize ws = g_gui.getWidgetSize();
|
||||
|
||||
_leftPadding = g_gui.evaluator()->getVar("ListWidget.leftPadding", 0);
|
||||
_rightPadding = g_gui.evaluator()->getVar("ListWidget.rightPadding", 0);
|
||||
_topPadding = g_gui.evaluator()->getVar("ListWidget.topPadding", 0);
|
||||
|
@ -41,7 +39,7 @@ ListWidget::ListWidget(GuiObject *boss, String name)
|
|||
_hlLeftPadding = g_gui.evaluator()->getVar("ListWidget.hlLeftPadding", 0);
|
||||
_hlRightPadding = g_gui.evaluator()->getVar("ListWidget.hlRightPadding", 0);
|
||||
|
||||
if (ws == kBigWidgetSize) {
|
||||
if (g_gui.getWidgetSize() == kBigWidgetSize) {
|
||||
_scrollBarWidth = kBigScrollBarWidth;
|
||||
} else {
|
||||
_scrollBarWidth = kNormalScrollBarWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue