B4J Question pane sizing/scaling

sorex

Expert
Licensed User
Longtime User
Hello,

I'm giving B4J a try most things go as expected.

The only thing I can't get a grip on is these panes.

I assume they are like panels in B4A as I can add child views to it.

But for some reason when I give it a dimension, let's say 500px it only displays as 400px.
(I compare it with a screenshot and photoshop messurement info)

I tried using prefered values but it's still scaling down even when there is still enough room on the form.

What am I missing here?
 

sorex

Expert
Licensed User
Longtime User
it appears that the image inside the pane is being resized.

checking some more stuff...
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
ok, I guess I figured it out.

the canvas size was not what it was supposed to be in the AddNode command and the stretching went wrong.

by the way, why is it obligated to have a canvas added to the scene to make the drawImage2 working?
if not you just get a white box copied.
 
Upvote 0
Top