Page 1 of 1

Colgroup runs out of frame on Android

Posted: Mon May 13, 2019 11:09 pm
by lazi
I made a colgroup of a text gadget with labels at both sides. The third element the rightmost label text is
notoriously overrun the frame size.

The xml part:

Code: Select all

<colgroup frame="true" columns="3"> 
...
<label>Emelt tömeg:</label>
<text id="lift" align="right" frame="true">--</text>
<label align="left"> gr</label>                  
...
</colgroup>  
HW/Player 8.0
Android 5.1.1
Resolution: 720x1280
Huawei SCL-L01

The Amiga and android screenshots:
Image
Image

Here is the test script:

Code: Select all

@REQUIRE "rapagui.hwp"

mainwindow=[[<?xml version="1.0" encoding="utf-8"?>
<application id="test">
<window id="win" title="test" notify="closerequest" >
	<vgroup>
	<vgroup frame="true">
	<colgroup frame="true" columns="3">

					<label>Név:</label>
					<text id="lufi_nev" align="right" frame="true">--</text>
					<label></label>

					<label>Fújt méret:</label>
					<hgroup>
					<text id="width" align="right" frame="true">--</text>
					<label>x</label>
					<text id="height" align="right" frame="true">--</text>
					</hgroup>
					<label align="left"> cm</label>

					<label>Emelt tömeg:</label>
					<text id="lift" align="right" frame="true">--</text>
					<label align="left"> gr</label>

					<label>Térfogat:</label>
					<text id="terfogat" align="right" frame="true">--</text>
					<label align="left"> cm3</label>
					
					<label>Mennyiség:</label>
					<text id="db" align="right" frame="true">--</text>
					<label align="left"> db</label>
					
					<label>Gáz ár:</label>
					<text id="gazar" align="right" frame="true">--</text>
					<label align="left"> Ft</label>
				</colgroup>
	</vgroup>
	</vgroup>
	</window>
	</application>
]]

Function p_EventFunc(msg)
	Switch msg.action
	Case "SizeWindow":
		 
	Case "RapaGUI":
  

	      Switch msg.class

		  Case "Window":

			  Switch msg.attribute
			  
				  Case "CloseRequest":
					  End
			  EndSwitch
	
			EndSwitch
	EndSwitch
endfunction

moai.CreateApp(mainwindow)

InstallEventHandler({RapaGUI = p_EventFunc, SizeWindow = p_eventfunc})

Repeat
	WaitEvent
Forever
              

Re: Colgroup runs out of frame on Android

Posted: Wed May 15, 2019 9:36 pm
by airsoftsoftwair
Right, looks like a bug. Will be fixed.