You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been making small hacks to a fork of TSMessages to make it work better in a project I'm working on. Recently we began using TLYShyNavBar, which offers Facebook/Instagram-like shrinking of the navbar as you scroll.
An issue with that is that my TSMessage alerts were appearing with a gap above them when the navbar had been shrunk, due to scrolling down the page.
After some testing, it appears that TLYShyNavBar doesn't actually shrink the navbar, but instead slides it up and out of view. In other words, instead of the navbar's center.y being at the usual 42, it ends up at -2 when slid out of sight by TLYShyNavBar's behavior.
This seems to work well, but I'm not well versed in how TSMessages works exactly, so I'm presenting it here as both a "maybe this will help you" and also a "am I doing this right?" kind of thing. :-)
The text was updated successfully, but these errors were encountered:
winzig
changed the title
Dealing with unusual navbar heights/positioning (e.g. TLYShybar)
Dealing with unusual navbar heights/positioning (e.g. TLYShyNavBar)
Sep 30, 2015
I've been making small hacks to a fork of TSMessages to make it work better in a project I'm working on. Recently we began using TLYShyNavBar, which offers Facebook/Instagram-like shrinking of the navbar as you scroll.
An issue with that is that my TSMessage alerts were appearing with a gap above them when the navbar had been shrunk, due to scrolling down the page.
After some testing, it appears that TLYShyNavBar doesn't actually shrink the navbar, but instead slides it up and out of view. In other words, instead of the navbar's center.y being at the usual 42, it ends up at -2 when slid out of sight by TLYShyNavBar's behavior.
I added this line to TSMessages right below line 220 of the current TSMessage.m, in the fadeInCurrentNotification method:
This seems to work well, but I'm not well versed in how TSMessages works exactly, so I'm presenting it here as both a "maybe this will help you" and also a "am I doing this right?" kind of thing. :-)
The text was updated successfully, but these errors were encountered: