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

alexpott - September 17, 2008 - 10:34

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

jdenniss - September 17, 2008 - 15:26

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

alexpott - September 18, 2008 - 09:23

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

jdenniss - September 18, 2008 - 15:14

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

alexpott - September 19, 2008 - 22:19
Assigned to:Anonymous» alexpott
Status:active» fixed

Hi,

This is now fixed in the new release 6.x-1.2

Alex

temp

Anonymous (not verified) - October 3, 2008 - 22:25

Automatically closed -- issue fixed for two weeks with no activity.

#6

Anonymous (not verified) - October 3, 2008 - 22:31
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#7

abouillet - December 6, 2008 - 14:49
Version:6.x-1.1» 6.x-1.3
Status:closed» active

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

abouillet - December 6, 2008 - 15:09
Assigned to:alexpott» Anonymous

#9

alexpott - December 8, 2008 - 10:37

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

abouillet - December 8, 2008 - 22:17

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é

AttachmentSize
drupal_settings.png 179.1 KB
drupal_knowledgetree.png 81.78 KB

#11

alexpott - December 14, 2008 - 08:51

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

abouillet - December 14, 2008 - 20:24

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

AttachmentSize
drupal_knowledgetree_loading.PNG 135.74 KB

#13

alexpott - December 15, 2008 - 10:46

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

abouillet - December 18, 2008 - 06:44

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

abouillet - December 18, 2008 - 11:57

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

AttachmentSize
javascript_error1.PNG 89.85 KB
javascript_error2.PNG 89.61 KB
javascript_error3.PNG 87.68 KB
javascript_error4.PNG 91.1 KB
javascript_error5.PNG 89.8 KB

#16

alexpott - December 21, 2008 - 09:00

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

alexpott - August 16, 2009 - 12:25
Status:active» fixed

#18

System Message - August 30, 2009 - 12:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.