Skip to content

Commit

Permalink
Fix the layout in multiinputwidget
Browse files Browse the repository at this point in the history
  • Loading branch information
onde2rock committed Mar 25, 2018
1 parent a52759d commit 3302c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/ui/widget/inputdialog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function InputDialog:init()
}
}
--little hack to piggyback on the layout of the button_table to handle the new InputText
table.insert(self.button_table.layout, #self.button_table.layout, {self._input_widget})
table.insert(self.button_table.layout, 1, {self._input_widget})

This comment has been minimized.

Copy link
@Frenzie

Frenzie Mar 25, 2018

Member

Sorry, never mind. I was looking at two commits at once so it was less clear.


self[1] = CenterContainer:new{
dimen = Geom:new{
Expand Down
2 changes: 2 additions & 0 deletions frontend/ui/widget/multiinputdialog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ function MultiInputDialog:init()
})
end

--remove the not needed hack in inputdialog
table.remove(self.button_table.layout, 1)
-- Add same vertical space after than before InputText
table.insert(VerticalGroupData,CenterContainer:new{
dimen = Geom:new{
Expand Down

0 comments on commit 3302c25

Please sign in to comment.