Page 1 of 1

Window Heigth not working why ?

Posted: Sun Sep 13, 2020 10:19 pm
by plouf
Can anyone guess why the following xml do NOT open a properly size height window (hollywood 8)

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<application id="App">
	 <window id="mainwindow" title="keypad" width="1200" height="1200">
		<vgroup>
				<button id="1" tooltip="1">1</button> 
		</vgroup>
	 </window>
</application>
i have try with
moai.Set("mainwindow","height",1200)
says "Attribute "height" not recognized for this class!"

i have try TreeView example and treeview example properly changes size !!

Re: Window Heigth not working why ?

Posted: Wed Sep 16, 2020 7:20 pm
by bitRocky
Because Button is not vertically resizable.
You have to add a VSpace or Rectangle object before or/and after the button..