Colgroup runs out of frame on Android

Discuss GUI programming with the RapaGUI plugin here
Post Reply
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Colgroup runs out of frame on Android

Post 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
              
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Colgroup runs out of frame on Android

Post by airsoftsoftwair »

Right, looks like a bug. Will be fixed.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Colgroup runs out of frame on Android

Post by airsoftsoftwair »

Code: Select all

- Fix [Android]: Colgroup rows sometimes got cut off 
Post Reply