Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue on iphone4 - retina 64 Bit Message is truncated (not visible.) #5

Closed
balram3429 opened this issue Nov 1, 2013 · 2 comments
Closed

Comments

@balram3429
Copy link

Hi,
Thank you for the last fix. Now I see another issue with the message. The message displayed is truncated in iPhone-4-retina-64bit but works well in others.
The issue is::
If I got a two line message, the 2nd line will be truncated, & if I got a 3 line message, the third line will be truncated.
Here is the screen shots.

screen shot 2013-11-01 at 9 14 33 am
screen shot 2013-11-01 at 9 14 45 am

@balram3429
Copy link
Author

Here are the values from file UBRAlertView.m
Method - (void)layoutComponents
Line No: 778, 784
The frame values are the same. I think the problem is with Color fading. Also, you can measure the visible difference in the color appearance of the AlertBox message background in both the pictures.

On 4inch-Retina-64Bit

Printing description of self->layout:

 (<anonymous struct>) layout = {
  titleRect = origin=(x=21, y=23) size=(width=238, height=21.474)
  messageRect = origin=(x=21, y=52.474) size=(width=238, height=33.404)
  buttonRect = origin=(x=0, y=0) size=(width=0, height=0)
  buttonRegionRect = origin=(x=0, y=0) size=(width=0, height=0)
  textFieldsRect = origin=(x=0, y=0) size=(width=0, height=0)
  }

On 4inch-Retina
Printing description of self->layout:

(<anonymous struct>) layout = {
  titleRect = origin=(x=21, y=23) size=(width=238, height=21.473999)
  messageRect = origin=(x=21, y=52.473999) size=(width=238, height=33.403999)
  buttonRect = origin=(x=0, y=0) size=(width=0, height=0)
  buttonRegionRect = origin=(x=0, y=0) size=(width=0, height=0)
  textFieldsRect = origin=(x=0, y=0) size=(width=0, height=0)
}

@u10int
Copy link
Owner

u10int commented Nov 3, 2013

I found the issue with the last line of text being cut off, which was due to the title and message frame heights not being rounded up to the nearest integer. Text is rendered slightly differently in iOS 7, which is likely the reason the issue only appeared now. I have corrected the issue and pushed the changes to the repo which should fix this issue for your.

@u10int u10int closed this as completed Nov 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants