Android Question B4XTable rowheight different in portrait and landscape mode of phone

mike1967

Active Member
Licensed User
Longtime User
Hello, i use a B4XTable and set the rowheght before load the data as :
code:
B4XTable1.RowHeight = 41dip
B4XTable1.HeadersHeight =50dip
but the result is different in portrait and landscape mode of phone like in attachment.
How to avoid this ? Thanks in advances
 

Attachments

  • WhatsApp Image 2022-10-04 at 18.15.05 (1).jpeg
    102.7 KB · Views: 131
  • WhatsApp Image 2022-10-04 at 18.15.05.jpeg
    69.9 KB · Views: 126
Solution
Solved, it works, Thanks.

emexes

Expert
Licensed User
but the result is different in portrait and landscape mode

This is just a wild no-idea guess, but: padding?

Or different x and y dpi (surely not? all pixels are square nowadays, aren't they??)

Another wild idea: add the "B4XTable1.RowHeight = 41dip" to eg a button event, so that you can repeat it after rotating the phone. To be sure, to be sure. ?
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
i commented but same thing
The only other thing I can suggest is to set this flag to false because it is set to True by default.:
B4X:
B4XTable1.AllowSmallRowHeightModifications = False
I know it would help to export a small project for us to check but based on your previous threads you don't like to export it. So if the above does not answer your question, wait for Erel or another powerhouse to solve it for you.
 
Last edited:
Upvote 1

mike1967

Active Member
Licensed User
Longtime User
Solved, it works, Thanks.
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…