The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

lettore2014 (1) [Avatar] Offline
#1
Hi,
I hope this is not a duplicated, I have checked and could not find it.
I am at 3.5.2, just added the onClickChat event handler. On Chrome it doesn't work, it does on Safari. I am on MacOS Maverick on a laptop.
I found out that
jqueryMap.$chat.height()
returns 15 on safari but 14 on Chrome - this breaks here:
px_chat_ht = jqueryMap.$chat.height(),
is_open = px_chat_ht === configMap.chat_extend_height,
is_closed = px_chat_ht === configMap.chat_retract_height
is_sliding = ! is_open && ! is_closed;

where is_sliding is always true so the chat div will never appear.

I have used a workaround
is_closed = px_chat_ht === configMap.chat_retract_height || px_chat_ht === configMap.chat_retract_height - 1,

but I would like to understand where this difference comes from and whether it's an error in my code or something on my system or else.
thanks
ben