Bug? Label Gravity Bug! Tested many times - same result

chrjak

Active Member
Licensed User
Longtime User
Hey Community!

Take a Label and change following values (in a timer - in 191 steps something will be count up/down) with some text in it and the gravity : center:

-TextSize (count down)
-Left (count up)
-Top (count up)
-Height (count down)
-Width (count down)

The text will go to the bottom and will disappear there. Declaration with designer, Gravity declaration again at the end and many things more didn't help. It has to be a bug! What to do know?

Thanks for the support!

Some example code:
B4X:
If Not(startlabel.Left > startlabelend) Then
    startlabel.Left = startlabel.Left + turnright (<- e.g. 1.2)
    End If
    If Not(startlabel.Top > startlabeltopend) Then
    startlabel.Top = startlabel.Top + turndown
    End If
    If Not(startlabel.TextSize < endTextSize) Then
    startlabel.TextSize = startlabel.TextSize - tSminus
    End If
    If Not(startlabel.height < endheight) Then
    startlabel.height = startlabel.height - heightminus
    End If
    If Not(startlabel.width < endwidth) Then
    startlabel.width = startlabel.width - widthminus
    End If

'And then checking if everything is correct and at his place and stopping the timer
 

chrjak

Active Member
Licensed User
Longtime User
ok. i did and that project works... but there is nothing different than in the original!?
(PM)
 
Top