Title: Javascript Cutting Off Popup
Last modified: August 21, 2016

---

# Javascript Cutting Off Popup

 *  Resolved [TheMatt](https://wordpress.org/support/users/thematt/)
 * (@thematt)
 * [12 years ago](https://wordpress.org/support/topic/javascript-cutting-off-popup/)
 * When I select “user Javascript to resize and center the popover” the popover 
   becomes cutoff on my website. The popover is a .png image. When I size it and
   position it myself it shows up fine, but once Javascript is selected t automatically
   center it crops the popover. Anyway to make it automatically size/center without
   cropping?
 * Link: [](https://wordpress.org/support/topic/javascript-cutting-off-popup/www.listabooks.com?output_format=md)
 * [https://wordpress.org/plugins/wordpress-popup/](https://wordpress.org/plugins/wordpress-popup/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [TheMatt](https://wordpress.org/support/users/thematt/)
 * (@thematt)
 * [12 years ago](https://wordpress.org/support/topic/javascript-cutting-off-popup/#post-4897255)
 * Wrong link. This is the right link to my site: [ Listabooks](http://www.listabooks.com/)
 * Thanks
 *  [David](https://wordpress.org/support/users/ugotsta/)
 * (@ugotsta)
 * [12 years ago](https://wordpress.org/support/topic/javascript-cutting-off-popup/#post-4897289)
 * Hi [@thematt](https://wordpress.org/support/users/thematt/),
 * Greetings and thanks for posting! I took a quick look and I may be wrong but 
   I think your theme has some media queries to handle image resizing.
 * Perhaps the following will help maintain the size though?
 *     ```
       div.visiblebox img {
       max-width: 550px;
       max-height: 300px;
       }
       ```
   
 * You could add that using a plugin like so:
    [http://wordpress.org/plugins/imporved-simpler-css/](http://wordpress.org/plugins/imporved-simpler-css/)
 * Would that work for you?
 * Cheers,
    David
 *  Thread Starter [TheMatt](https://wordpress.org/support/users/thematt/)
 * (@thematt)
 * [12 years ago](https://wordpress.org/support/topic/javascript-cutting-off-popup/#post-4897329)
 * Thanks [@david](https://wordpress.org/support/users/david/)
 *  [David](https://wordpress.org/support/users/ugotsta/)
 * (@ugotsta)
 * [12 years ago](https://wordpress.org/support/topic/javascript-cutting-off-popup/#post-4897341)
 * Hi [@thematt](https://wordpress.org/support/users/thematt/),
 * You’re most welcome, glad to help! Anything we can help with, just let us know!
   🙂
 * Cheers,
    David

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Javascript Cutting Off Popup’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popup/assets/icon-256x256.gif?rev=3446944)
 * [Hustle - Email Marketing, Lead Generation, Optins, Popups](https://wordpress.org/plugins/wordpress-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popup/reviews/)

## Tags

 * [cropping](https://wordpress.org/support/topic-tag/cropping/)
 * [dimensions](https://wordpress.org/support/topic-tag/dimensions/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [Sizing](https://wordpress.org/support/topic-tag/sizing/)

 * 4 replies
 * 2 participants
 * Last reply from: [David](https://wordpress.org/support/users/ugotsta/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/javascript-cutting-off-popup/#post-4897341)
 * Status: resolved