icerockdev / moko-widgets

Multiplatform UI DSL with screen management in common code for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
384 stars 31 forks source link

Help fix constraint elements #270

Closed Diy2210 closed 3 years ago

Diy2210 commented 4 years ago

How fix it?

Android: Снимок экрана 2020-07-24 в 15 42 11

iOS: Simulator Screen Shot - iPhone SE (2nd generation) - 2020-07-24 at 15 46 51

Constraint Item: Снимок экрана 2020-07-24 в 15 46 19

Constraint: Снимок экрана 2020-07-24 в 15 46 34

And one more question why button style in iOS another? How fix it too? Left iOS, right Android: Снимок экрана 2020-07-24 в 15 51 38

Style Cancel button: Снимок экрана 2020-07-24 в 15 53 21

Style Save button: Снимок экрана 2020-07-24 в 15 53 29

Dorofeev commented 4 years ago

For iOS constraints you should use root.safeArea when add constraint to screen border. Because of Safe Area Layout Guide

Diy2210 commented 4 years ago

For iOS constraints you should use root.safeArea when add constraint to screen border. Because of Safe Area Layout Guide

Tnx! Simulator Screen Shot - iPhone SE (2nd generation) - 2020-07-24 at 17 05 00

Diy2210 commented 4 years ago

And how about button style?

Alex009 commented 3 years ago

@Diy2210 on android button have default paddings, but on ios button not have default paddings. you can set own paddings in viewFactory

Diy2210 commented 3 years ago

@Diy2210 on android button have default paddings, but on ios button not have default paddings. you can set own paddings in viewFactory

Ok, tnx!