HipByte / Flow

Cross-platform libraries for RubyMotion
BSD 2-Clause "Simplified" License
141 stars 29 forks source link

reasonable defaults for layouts? #41

Open amirrajan opened 8 years ago

amirrajan commented 8 years ago

Just a short list I'm keeping for reasonable defaults for different UI components.

jjaffeux commented 8 years ago

My idea was to provide a default template implementing material design.

amirrajan commented 8 years ago

Only bring this up because I got tripped on on UI::Button on :tap wire up. I spun my wheels for a little bit because the tap event wasn't firing. It was because the UI::Button didn't have a height.

jjaffeux commented 8 years ago

concerning this specific case we should make sure the button has at least the size of its intrinsic size (text, image)

jjaffeux commented 8 years ago

Should work with this commit on iOS : https://github.com/HipByte/Flow/commit/79749c71b793f9014e3978741b498c7511920234