-
I'm getting close to finishing the UI I'm building for Regional Prompter in my app, and I have a question. I plan to use pixel values for the divide ratio, and am trying to figure out how that will work. When using simple ratios, like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is the MVP for the Regional Prompter UI in my app. The first image is an example using the horizontal divide mode. In that divide mode, columns can only be added to a selected region. A row can be added anytime, but it will always be placed below existing columns. The bottom region with the white border is a selected region. The The image below is an example using the vertical divide mode. In this mode, rows can only be added to selected regions. Columns can be added anytime, though. New columns are always added to the right of existing regions. I also plan on hiding the divide ratio, since it's calculated automatically. Each region can be clicked and dragged to change its height or weight (with certain limitations), and the divide ratio is updated automatically. But I need to verify that I'm calculating the divide ratios correctly. Right now, I'm most confused by how to calculate the divide ratio when using vertical mode. Also, would it be best to use 3 values to define any region, regardless of the divide mode? Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
-
After some offline help from hako-mikan, I figured out how to calculate the divide ratio correctly. Thank you @hako-mikan ! |
Beta Was this translation helpful? Give feedback.
After some offline help from hako-mikan, I figured out how to calculate the divide ratio correctly.
Horizontal mode:
Vertical mode:
Thank you @hako-mikan !