Changeset 3691

Show
Ignore:
Timestamp:
07/03/07 02:55:57 (1 year ago)
Author:
timothy
Message:

Make sure to scroll to the bottom after rotating if we were at the bottom before rotating.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plug-Ins/Web Interface/Resources/iphone/iphone.js

    r3690 r3691  
    5151                Colloquy.currentWidth = window.innerWidth; 
    5252 
     53                var scrolledNearBottom = ChatController.activePanel && ChatController.activePanel.scrolledNearBottom(); 
     54 
    5355                var orient = Colloquy.currentWidth == 320 ? "profile" : "landscape"; 
    5456                document.body.setAttribute("orient", orient); 
     57 
     58                if (ChatController.activePanel && scrolledNearBottom) 
     59                        ChatController.activePanel.scrollToBottom(); 
    5560 
    5661                // pan to the bottom, hides the location bar