Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

resize_on_element_resize Not Working
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=3969
Page 1 of 1

Author:  bkonia [ 5. Nov 2015, 04:10 ]
Post subject:  resize_on_element_resize Not Working

I'm having trouble getting the resize_on_element_resize parameter to work. I'm trying to use it to resize an iFrame that contains a CK Editor object. CK Editor allows the user to increase the size of the editor by dragging the resize handle in the lower-right corner. When I increase the editor size, I get scroll bars in my iFrame, even though I'm using resize_on_element_resize.

I've tried several different objects to monitor the resize event, including the main body tag, but nothing seems to work.

This page is only viewable to users who are logged in. If you email me directly, I can give you login credentials so you can test it out yourself.

Author:  TinyWebGallery [ 5. Nov 2015, 11:25 ]
Post subject:  Re: resize_on_element_resize Not Working

How is your setup? Does auto height work for the first request?

Best, Michael

Author:  bkonia [ 5. Nov 2015, 11:34 ]
Post subject:  Re: resize_on_element_resize Not Working

Yes, auto height works and resize_on_click works.

Author:  TinyWebGallery [ 5. Nov 2015, 11:45 ]
Post subject:  Re: resize_on_element_resize Not Working

But how is your setup? Same domain/different domain/external workaround? Shortcode?

Author:  bkonia [ 5. Nov 2015, 12:04 ]
Post subject:  Re: resize_on_element_resize Not Working

Same domain. Here's the shortcode:

[advanced_iframe securitykey="REDACTED" use_shortcode_attributes_only="true" src="//www.emailwiz.com/rt/SelfService" width="100%" height="800" scrolling="none" id="advanced_iframe" enable_responsive_iframe="true" onload_resize="true" additional_height="150" resize_on_click="250" resize_on_element_resize="body" map_parameter_to_url="show|new|https://www.emailwiz.com/rt/SelfService/CreateTicketInQueue.html"]

Author:  TinyWebGallery [ 5. Nov 2015, 13:01 ]
Post subject:  Re: resize_on_element_resize Not Working

why do you have resize_on_click="250" resize_on_element_resize="body". Normally only one of both is needed.

Best, Michael

Author:  bkonia [ 5. Nov 2015, 18:35 ]
Post subject:  Re: resize_on_element_resize Not Working

I removed the resize_on_click="250" and everything else still works fine, it still resizes on clicks, when I navigate to other pages, etc... However, resizing the CK Editor object still results in scroll bars. It seems there's something specific to this object that causes it to not trigger a change the body height. Can you test it on your end with CK Editor and see if happens to you? Or I can give you a login to my site.

Author:  TinyWebGallery [ 5. Nov 2015, 18:56 ]
Post subject:  Re: resize_on_element_resize Not Working

has ck maybe again a iframe inside?

Author:  bkonia [ 5. Nov 2015, 20:44 ]
Post subject:  Re: resize_on_element_resize Not Working

Yes, it uses an Iframe for the editor text area.

Author:  TinyWebGallery [ 6. Nov 2015, 21:01 ]
Post subject:  Re: resize_on_element_resize Not Working

This is maybe the reason. Is the size of the ck editor changing? because the content in there is a different page.

Best, Michael

Author:  bkonia [ 6. Nov 2015, 23:56 ]
Post subject:  Re: resize_on_element_resize Not Working

Well, I'm manually resizing the editor, and it's affecting the size of the body area, so I would think the script would pick up the size change. Is there any way you could login to my site and take a look at it?

Author:  TinyWebGallery [ 7. Nov 2015, 00:34 ]
Post subject:  Re: resize_on_element_resize Not Working

Are you e.g. using firefox and simply make it bigger in the right bottom corner? So that the editor is above all other elements?

Best, Michael

Author:  bkonia [ 7. Nov 2015, 01:22 ]
Post subject:  Re: resize_on_element_resize Not Working

I'm not sure what you mean. The editor has a resize handle in the lower right corner. I'm dragging that handle to resize the editor box.

Author:  bkonia [ 7. Nov 2015, 06:37 ]
Post subject:  Re: resize_on_element_resize Not Working

I'm not sure what changed, but it suddenly started working. Perhaps a browser caching issue. Sorry to trouble you with this.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/