dezinezync / NappUI

A collection of extended functionality for the UI components of Titanium SDK
Other
0 stars 1 forks source link

Attributes labels: Emoji characters push the label text outside of the frame #3

Open ludolphus opened 11 years ago

ludolphus commented 11 years ago

Best way to see this issue is to set a backgroundColor on the label, see screenshot. Sample code in my fork of this project in app.js

screen shot 2013-10-07 at 10 22 01

dezinezync commented 11 years ago

After running this code, I thought I would see exactly that, but on the contrary, my label was sized perfectly. (Will attach screenshots in a bit. GitHub being slow at the moment).

This shouldn't be happening, as the [label sizeToFit] perfectly handles setting the label's height. I'll keep an eye out for this one and cook another more exhaustive test case.

— Sent from Mailbox for iPad

On Mon, Oct 7, 2013 at 3:57 PM, Steven van Loef notifications@github.com wrote:

Best way to see this issue is to set a backgroundColor on the label, see screenshot. Sample code in my fork of this project in app.js

screen shot 2013-10-07 at 10 22 01

Reply to this email directly or view it on GitHub: https://github.com/dezinezync/NappUI/issues/3

ludolphus commented 11 years ago

I will retest this with a 100% sure clean copy of the current code on your fork.

ludolphus commented 11 years ago

Just downloaded a clean copy of the current source. Only thing changed is the backgroundColor in the example to show the label frame. Same result as before: the labels 'leaks'

dezinezync commented 11 years ago

Let me inspect it again. 

— Sent from Mailbox for iPad

On Mon, Oct 7, 2013 at 4:56 PM, Steven van Loef notifications@github.com wrote:

Just downloaded a clean copy of the current source. Only thing changed is the backgroundColor in the example to show the label frame. Same result as before: the labels 'leaks'

Reply to this email directly or view it on GitHub: https://github.com/dezinezync/NappUI/issues/3#issuecomment-25801111

dezinezync commented 11 years ago

Finally! Github is working.

Following are the frames I got: (Xcode 5, iOS 7, Sim)

This is with the \n appended to the string

ios simulator screen shot 07-oct-2013 3 59 41 pm

This is without the \n

ios simulator screen shot 07-oct-2013 4 02 02 pm

ludolphus commented 11 years ago

no idea what's wrong on my system, also using XCode 5 and the iOS 7 Simulator. Will try some other settings and placement of the label like you did here. I'm running the sim in retina large mode. I just tried without setting bottom/top so it centers, but still leaking the last line

ludolphus commented 11 years ago

On another system, reinstalled XCode 5 and only 3.1.3.GA installed. Still same problem. Will try latest continues builds for 3.1.4 and 3.2.0

dezinezync commented 11 years ago

I'm sure this has nothing to do with Ti. This is an iOS thing. So definitely a sizeToFit bug. 

Cheers, Nikh.

On Tue, Oct 8, 2013 at 6:32 PM, Steven van Loef notifications@github.com wrote:

On another system, reinstalled XCode 5 and only 3.1.3.GA installed. Still same problem. Will try latest continues builds for 3.1.4 and 3.2.0

Reply to this email directly or view it on GitHub: https://github.com/dezinezync/NappUI/issues/3#issuecomment-25887338

ludolphus commented 11 years ago

Strange thing is that it works on your simulator. I have a device running on 6.1.3, could try there and see what happens.

dezinezync commented 11 years ago

Surprisingly, it works in my app as well, and so far none of my beta testers have reported this behaviour. The app is iOS7 only. 

Cheers, Nikh.

On Tue, Oct 8, 2013 at 7:27 PM, Steven van Loef notifications@github.com wrote:

Strange thing is that it works on your simulator. I have a device running on 6.1.3, could try there and see what happens.

Reply to this email directly or view it on GitHub: https://github.com/dezinezync/NappUI/issues/3#issuecomment-25891761