Why scrollView doesn't display 100%x properly?

Penko

Active Member
Licensed User
Longtime User
Hello! Check this screenshot:
http://software.kms-e.com/repo/b4a_scrollview_width.jpg

You see the black gap on the right. It should be there. For example, the button is handled correctly.

Note that this is the visualisation only. It works perfectly running on the real device.

Is there something I am missing?
 

Penko

Active Member
Licensed User
Longtime User
Yes, Erel.

On the Main tab, the view is displayed properly because I have expanded it to the maximum width.

Going to the Scripts tab and running the script, the view is smaller than 100%x(as you see on the screenshot).

I am attaching the view as well as the designer script.

The designer code:
B4X:
'All variants script


btnAdd.Bottom = 100%y '5dip
btnAdd.Width = 100%x

scrollViewMain.Width = 100%x
scrollViewMain.Height = 100%y - btnAdd.Height


Erel, note that I noticed the same behavior for panels too. On another view of mine, I am doing almost the same and the panel is also not expanded to the maximum width. But fortunately, this is only a visualization issue.

P.S The forum system doesn't allow .bal files to be attached without zipping.
 

Attachments

  • laytests_def.zip
    1.1 KB · Views: 228
  • LS_laytests_def.zip
    437 bytes · Views: 197
Last edited:
Top