Iframe at fixed height (waayyy too small)
jdenniss - September 16, 2008 - 23:27
| Project: | KnowledgeTree integration |
| Version: | 6.x-1.3 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
The integration seems generally good, however I can't seem to adjust the height of the iframe. What I get is roughly 200px high, even when I add an explicit height on the admin setup screen.
Thanks for doing this integration

#1
I normally set this to auto so that iframe expands to fit KnowledgeTree's content. However setting the height on the iframe should result in a fixed iframe so perhaps it's the drupal theme you're using which is stopping the iframe from having it's correct height. I will test the fixed height solution this evening with the default drupal theme and let you know how it goes.
#2
Cool, thank you. I was originally using the 'auto' setting, but it wasn't working. Then I started playing with explicit settings. I switched back to the default 'Garland' theme this morning, but I'm still only getting a couple hundred pixels in height on the KT iframe. [width setting seems to be working fine]
#3
You're right there's a bug there... basically unless the height is set to "auto" - all lower case it is ignored. I didn't get a chance to release a fixed version but will do asap...
#4
I reset the value to 'auto' and am still getting the same results (very short frame). I look forward to the patch. good luck and thanks...
#5
Hi,
This is now fixed in the new release 6.x-1.2
Alex
temp
Automatically closed -- issue fixed for two weeks with no activity.
#6
Automatically closed -- issue fixed for two weeks with no activity.
#7
Hello,
I'm using Knowledgetree 3.5.4, Drupal 6.6 and the updated KT Integration 6.x-1.3. In this scenario the problem is still there as described in the bug report. I just have a small frame showing the menu of Knowledgetree. When I force to use a scrollbar the height isn't changing. I hope that there is a bug fix to work around the problem, because I really like to use the KT integrated into Drupal.
Thanks in advance.
Greetings,
André
#8
#9
Hi Abouillet,
Any chance I can have a look at the site to figure out what's going on?
Have you tried putting a value of "auto" in the height field?
Cheers,
Alex
#10
Hello Alex,
I have attached two files that show the settings and the integration view of knowledgetree in drupal. Sorry, but currently the site is just reachable in my intranet - I'm currently working on putting it to the internet. But perhaps the two screenshots will help you to narrow down the problem.
Additionaly here are some infos about my configuration:
CentOS 5.2
PHP 5.1.6 (perhaps this is the problem???)
Apache 2.2.3
Regards,
André
#11
Hi Andre,
I've just retested the drupal 6 release and it seems to be working perfectly for both "auto" and a pixel based height like "600px".
Are you still having this problem?
Cheers,
Alex
#12
Hi Alex,
I still have this issue (also after updating to drupal 6.8).
What is a little bit strange is that the "loading" window will never disappear. I attached another screenshot below that shows this problem (height set to 600px - auto shows the same behaviour as in my previous post). Perhaps I can help you with some debug outputs - if you send me some hints, where to look for it.
Cheers,
Andre
#13
Hi Andre,
Does Knowledge tree load correctly if you navigate straight to it and not go through Drupal and the iframe?
It looks like something is not working on the knowledge tree side - any javascript errors?
Regards,
Alex
#14
Hello Alex,
when not starting through Drupal, Knowledgetree starts correctly - and it don't throws any javascript errors. But when starting with Drupal through the iframes I get several different warnings / errors:
The first warning is:
Warnung: Fehler beim Verarbeiten des Wertes für Eigenschaft 'top'. Deklaration ignoriert.
Quelldatei: http://192.168.2.113:8080/resources/css/kt-framing.css
Zeile: 42
One error occurs:
Fehler: boxHeight is undefined
Quelldatei: http://192.168.2.113:8080/thirdpartyjs/curvycorners/rounded_corners.inc.js
Zeile: 125
And multiple times the following warning (with different line locations):
Warnung: Unbekannte Eigenschaft 'zoom'. Deklaration ignoriert.
Quelldatei: http://192.168.2.113:8080/thirdpartyjs/extjs/resources/css/ext-all.css
Zeile: 898
I will try to export all warnings and attach them to this thread.
Greetings,
Andre
#15
Hello Alex,
I have attached some screenshots of some of the warnings (not all) and the error message when I try to load KnowledgeTree in Drupal. Direct loading, as stated above, does not throw theses errors.
Kind regards,
Andre
#16
Hi Andre,
You need to stop the javascript error from occuring. This is because something is not working in the iframe with KnowledgeTree's use of ther curvycorner javascript function. If you removed the calls to the curvycorner functions in loader.js (in kt's resources folder) you should be okay.
Just comment out this code...
var pageBody = document.getElementById("pageBody");
/* Remove becuase displaying in iframe
var pageBlock = new curvyCorners(settings, pageBody);
pageBlock.applyCornersToAll();*/
pageBody.style.backgroundPosition="bottom left";
// footer
/* Remove becuase displaying in iframe
var footer = document.getElementById("copyrightbarBorder");
var footerBlock = new curvyCorners(settings, footer);
footerBlock.applyCornersToAll();*/
Regards,
Alex
#17
#18
Automatically closed -- issue fixed for 2 weeks with no activity.