Forum Thread
Two Palpad bugs [+solve]
Forum-Index → Bug Reports → Confirmed Bugs → Two Palpad bugs [+solve]red => remove code
Issue #1 : Palpad open in other tab
Only update the chat when has_focus is true:
function updatePrivateChat(){if(!load_lock && has_focus){ ...
Issue #2 : Scrolling down when textbox gets focus / window is resized
This is unnecessary. It's sufficient to scroll down when messages are loaded.
$(document).ready(function() { ... }); (everything inside included)
Issue #2: If you are looking for a message from the past you scroll up a bunch, if then you go to another window (lets say someone sent a message on another site) and come back, palpad will have scrolled down again. This is also somewhat annoying if you're looking for old messages.
Sorry for the late reply, haven't been that active in the forums lately
Edit:
While I'm at it, I should mention you should put a kind of word-wrap for palpad. If someone decides toWriteLikeThisAllTheTime or_maybe_write_like_this_for_some_weird_reason (yes it happens), then it will just leave the palpad window. Just some simple CSS will fix it:
#private_chat div.chat_txt {
position: relative;
margin-left: 30px;
word-wrap: break-word;
}