

It also is not differentiating between resizing up or down, also crashes the browser sometimes. So, I've been teaching myself HTML, CSS, JS/jQuery for the last three months and I've finally got enough stuff put together that I'd like to create a portfolio. This one is a bit more smooth but I can't make it stop at the desired Height.

Window.resizeBy(widthPercentagePlus, heightPercentagePlus) Window.resizeBy(widthPercentageMinus, heightDecrheightPercentageMinuseasePercentageMinus) Popup.resizeTo(bodyTargetWidth, height -= 5) Var bodyTargetHeight = (parseFloat(parseInt(strH2)) + parseFloat(strHdif)) Ĭonsole.log("Window Height: ", height, "CSS Height: ", bodyTargetHeight) Var strH = getComputedStyle((".body_zero")).getPropertyValue("height") Var bodyTargetWidth = (parseFloat(strW2) + parseFloat(strWdif)) Var strW = getComputedStyle((".body_zero")).getPropertyValue("width") ( strWdif and strHdif are used to compensate for some issues with CSS setting proper sizes which I haven't figured out yet.) const popup = window Another issue is there is also some twitching of the bottom text near the edge of the window when navigating. Sometimes I need to click twice on the button to resize too because 1 click won't be enough. Clicking on the icon in the menu bar produces a drop-down menu of window sizes that. I somewhat achieve this but the animation is clunky and also the final height is not always the same. The Window Resizer extension lets you resize your browser window on the fly.

So what I need is for those cases where users use the extension detached via window.open or through a shortcut, when navigating through different options, for the Height of the window to be resized smoothly. This question will also apply for situations where users create a Shortcut for the extension on Chrome via: I'm working on a Chrome Extension where the user can launch it via default "popup.html", or if the user so desires this Extension can be detached from the top right corner and be used on a popup window via window.open
