Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: exanimo on June 03, 2014, 11:42:04

Title: Problem with component wrapper
Post by: exanimo on June 03, 2014, 11:42:04
Hello
I try to insert an external page with component wrapper but its width is about 1/3 of the width of the content area even if i set other value in the width text field.
I noticed that in default.html.php the width property for iframe is set to 100% allthough it doesnt work properly.

Thank You
Title: Re: Problem with component wrapper
Post by: datahell on June 03, 2014, 14:27:25
Maybe there is a CSS rule that changes the iframe width. Give us a link to see it.
Title: Re: Problem with component wrapper
Post by: exanimo on June 04, 2014, 10:35:36
You were right, a css rule was the problem.
I added a line "$this->css[] = '.main-body{width:100%;}';" in aiolos.class.php, when "countleft == 0 && $countright == 0".
My mistake was that i focused only in maincontent class.
But there is another issue.
I inserted two diferent pages and in one of them a right scrollbar apears "http://www.diadiktio.gr/wrapper/41.html"
and in "http://www.diadiktio.gr/wrapper/44.html" disapears in 1 seconed.
In fact i don't wand scrollbars
Any idea what to do?

Thank You
Title: Re: Problem with component wrapper
Post by: datahell on June 04, 2014, 14:36:44
Wrapper in Elxis 4.x is smart and tries to set the the iframe height automatically. But you can also set it manually, see wrapper options for width and height.
Title: Re: Problem with component wrapper
Post by: exanimo on June 05, 2014, 11:45:28
I think that it would be smarter if per cent values were accepted
Title: Re: Problem with component wrapper
Post by: datahell on June 05, 2014, 13:23:34
Width is always 100%. What you can set is the height in pixels. It has no meaning to set height as percentage, percentage of what? The default height is 600 pixels.
If option "resize" is enabled (disabled by default) Elxis will try to set iframe height to a value that matches contents height so no vertical scrollbar to be displayed.
Title: Re: Problem with component wrapper
Post by: exanimo on June 06, 2014, 08:37:05
Thank you
Your comment is very helpful