B4J Question pane sizing/scaling

Discussion in 'B4J Questions' started by sorex, Jul 20, 2015.

  1. sorex

    sorex Expert Licensed 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?
     
  2. sorex

    sorex Expert Licensed User

    it appears that the image inside the pane is being resized.

    checking some more stuff...
     
  3. sorex

    sorex Expert Licensed 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.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Note that the next version of B4J will soon be released. It will make it simpler to manage the UI.
     
Loading...