tales / tales-client

Moved to https://gitlab.com/tales/tales-client
http://www.manasource.org/
GNU General Public License v2.0
13 stars 5 forks source link

NpcDialog: choice text not wrapping #35

Closed Ablu closed 9 years ago

Ablu commented 9 years ago

Long choices do not wrap (can be tested with Durmark).

bjorn commented 9 years ago

This is either Android or Qt 5.5 specific. Note that the text is also centered. The left-alignment and wrapping is fine with Qt 5.4.1 on desktop, at least for me.

Hopefully we just need to override some different default values.

Ablu commented 9 years ago

I hit it with Qt 5.4.0. on pc. Will need to test with a newer version (and on android)

Ablu commented 9 years ago

Fixed this in 4f7b1c4183e0abe8b999873fd587cac3438793ae

bjorn commented 9 years ago

@Ablu Erm, the text is not actually supposed to be centered, so I think you should drop the horizontalAlignment: Text.AlignHCenter. I don't think this previously was the effect of anchors.centerIn: parent, as I commented here before, on desktop with Qt 5.4.1 the text was left-aligned.

Ablu commented 9 years ago

Eh... Right. http://www.sourceoftales.org/screenshots/tales2.png shows it left aligned... I thought it was centered... Will fix that again.

Ablu commented 9 years ago

Fixed