levey/AwesomeMenu

MenuItems are blurry

Closed this issue · 1 comments

UMAD commented

It seems due to the transforms performed on the menuitems, they are resized or something which causes them to blur and look not so retina. This doesn't seem to be the case with the add button though.

Both the background of the menu items and their content images seem to be affected.

On the left is the result after the menu is opened. On the right is the original (menu item image + content image) http://cl.ly/FTpi

Here is also the same problem with the images you have supplied in the project http://cl.ly/FTEZ on left you see what happens when you run. and on the right is the original.

UMAD commented

Ok, I figured out the problem. The item's frame's origin was ending in float after the _expand() method was done.
You can check it out yourself by checking the values of the origin after

item.center = item.endPoint;

in _expand()

You will find item.frame.origin.x and .y both are float which caused it to be blurred.

FIX:
Add this line to the end of _expand()

item.frame = CGRectIntegral(item.frame);