diff --git a/exp_scenario/module/gui/calculator.lua b/exp_scenario/module/gui/calculator.lua index 3fc81d1a..60010105 100644 --- a/exp_scenario/module/gui/calculator.lua +++ b/exp_scenario/module/gui/calculator.lua @@ -89,9 +89,6 @@ Elements.calculator_input_textfield = Gui.define("calculator/input_textfield") :draw{ type = "textfield", } - :style{ - width = 300, - } --- Output label Elements.calculator_result_label = Gui.define("calculator/result_label") @@ -109,8 +106,11 @@ Elements.container = Gui.define("calculator/container") local button_flow = Gui.elements.screen_frame.get_button_flow(screen_frame) local header = Elements.calculator_caption_label(button_flow, {"exp-gui_calculator.tooltip"}) header.style = "frame_title" + header.style.horizontal_align = "left" local main_table = Gui.elements.scroll_table(screen_frame, 500, 2) + main_table.draw_horizontal_lines = true local left_table = Gui.elements.scroll_table(main_table, 300, 1) + left_table.vertical_centering = false local right_table = Gui.elements.scroll_table(main_table, 200, 1) Elements.calculator_caption_label(left_table, {"exp-gui_calculator.expression"}) Elements.calculator_input_textfield(left_table)