Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
IOS Hotels
and
IOS Rentals
online booking systems for Elxis CMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Problem with component wrapper
« previous
next »
Print
Pages: [
1
]
Author
Topic: Problem with component wrapper (Read 5510 times)
exanimo
Jr. Member
Posts: 67
Problem with component wrapper
«
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
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Problem with component wrapper
«
Reply #1 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.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
exanimo
Jr. Member
Posts: 67
Re: Problem with component wrapper
«
Reply #2 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
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Problem with component wrapper
«
Reply #3 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.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
exanimo
Jr. Member
Posts: 67
Re: Problem with component wrapper
«
Reply #4 on:
June 05, 2014, 11:45:28 »
I think that it would be smarter if per cent values were accepted
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Problem with component wrapper
«
Reply #5 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.
«
Last Edit: June 05, 2014, 13:26:37 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
exanimo
Jr. Member
Posts: 67
Re: Problem with component wrapper
«
Reply #6 on:
June 06, 2014, 08:37:05 »
Thank you
Your comment is very helpful
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Problem with component wrapper