sieukrem / jn-npp-plugin

Plugin for Notepad++ allowing you to automate some tasks using JavaScript
https://github.com/sieukrem/jn-npp-plugin/wiki
110 stars 24 forks source link

scrollTo bottom a docking bottom #42

Closed lollita closed 8 years ago

lollita commented 8 years ago

How to scroll to bottom a Dialog({dockable:{docking:"bottom"}}?

sieukrem commented 8 years ago

Something like this

var d = new Dialog({html:"<ol><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li><li>af</li></ol>"
,dockable:{docking:"bottom"}})

d.htmlDialog.document.body.scrollTop+=d.htmlDialog.document.body.scrollHeight;
lollita commented 8 years ago

When i use it, when the page is full, the background and foreground become white. to revert right color I have to:

sieukrem commented 8 years ago

try to do that within System.setTimeout!

lollita commented 8 years ago

It work! ty :) Your plugin is GREAT!!! i waiting x64 ;) So I can also try the modified version of Library.js also in private.