Terra Informatica Forums » htmlayout

scroll_to_view(true) problem

(9 posts)

  1. scroll_to_view(true) doesn't seem to work in all situations. For example, with html:

    
    <html>
    	<head>
    		<style>
    
    		#box
    		{
    
    			border: 1px solid blue;
    			height: 70px;
    			width: 100px;
    			overflow: auto;
    
    		}
    
    		</style>
    	</head>
    	<body>
    
    		<br>
    
    		<div id="box">
    
    			<br><br><br><br><br><br><br><br>
    
    			<div id="ScrollToMe">
    				Hello!
    			</div>
    
    			<br><br><br><br><br><br><br><br>
    
    		</div>
    	</body>
    </html>
    

    scroll_to_view(true) on <div id="ScrollToMe"> sets the element to just outside of the div (and not visible). scroll_to_view(false) works fine.

    Can you confirm this effect? (I've only tested with HTMLite)

    Posted 3 years ago #
  2. scroll_to_view(true) doe not work properly. I'll fix it in the next build.

    Posted 3 years ago #
  3. Following up on scroll_to_view(true) - it doesn't appear to be fixed in the recent build.

    Posted 3 years ago #
  4. Thanks for remainder, David.
    Will be fixed today.

    Posted 3 years ago #
  5. Thanks Andrew, it's working well now with the latest build. Much appreciated!

    Posted 3 years ago #
  6. I've got request to modify scroll_to_view to accept more options:

    enum scroll_to_view_options
    {
      scroll_to_view_lazy,
      scroll_to_view_top,
      scroll_to_view_middle,
      scroll_to_view_bottom,
    }

    scroll_to_view_lazy is what I am doing now on false
    scroll_to_view_top is a variation of current true but if element is already in the view then force it to be on top. Other values are similar to scroll_to_view_top but to middle/bottom.

    Does it makes sense?

    Posted 3 years ago #
  7. Makes sense.

    scroll_to_view_top would make the user experience more consistent, because each time the user triggers the scroll_to_view, the scroll position would be consistent, even if the element is already in view.

    This would be a useful addition.

    Posted 3 years ago #
  8. Just adding that having scroll_to_view_top, forcing the element to top even when it's already in view would be well received.

    It can be quite confusing without this (for the end user). My app has a commenting system, much like this BBPress. Imagine going to a fragment identifier (for example: http://terrainformatica.com/forums/topic.php?id=12&page&replies=7#post-238 ) but not having it jump to the top of the page.

    I wonder if scroll_to_view_top should almost be default for scroll_to_view(true) (instead of the current scroll_to_view_lazy).

    Posted 3 years ago #
  9. David, next build will have this.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.