Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Displaced menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedDisplaced menu

 Post Reply Post Reply Page  12>
Author
msvensson82 View Drop Down
Newbie
Newbie


Joined: 21 August 2010
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote msvensson82 Quote  Post ReplyReply Direct Link To This Post Topic: Displaced menu
    Posted: 02 September 2010 at 11:50am
I get a displacement for both my font and size menues, and I can't figure out why. The only thing I have changed from the standard default.asp file is the adjustment etc. of the actual form according to the following:

<table border="0" cellpadding="0" cellspacing="1" bgcolor="#777777" >
<tr>
<td bgcolor="#F4F7FB" align="left">

<!--#include file="RTE_editor_inc.asp" -->
<tr>
<td bgcolor="#F4F7FB" align="left">

<textarea cols="110" rows="37" name="myTextarea" id="myTextarea">
<%=text1%>
</textarea>

</td>
</tr>
</table>

Here's the output


I do have a different stylesheet for the page that I include this form on, but as far as I have been able to determine, nothing that would generate a displacement of the actual popup menu...

help...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2010 at 3:37pm
More likely something in your style sheet or a layer causing the problem.
Back to Top
msvensson82 View Drop Down
Newbie
Newbie


Joined: 21 August 2010
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote msvensson82 Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2010 at 3:09pm
But it can't be because my stylesheet, since this all happens inside an IFRAME right?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2010 at 10:51am
Have you placed the RTE in to an IFrame on your website?

If so then this is more then likely what is causing the issue as the javascript that opens the drop down is unable to get the correct screen location.
Back to Top
msvensson82 View Drop Down
Newbie
Newbie


Joined: 21 August 2010
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote msvensson82 Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2010 at 1:37pm
No I have not modified the application at all like that, I just went into the source code and had a peek. Or maybe the actual menues (color picker etc.) are the only IFRAMES there is...?
Back to Top
msvensson82 View Drop Down
Newbie
Newbie


Joined: 21 August 2010
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote msvensson82 Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2010 at 6:51pm
I have spent a whole day trying to figure this one out. I have found that by erasing all contents in my stylesheet, I get a correctly placed menu. I then went on to take each element in my css file out at a time, to see which one caused the displacement, to my surprise no one of the elements by itself caused this. I got no further in my search by doing this great and timeconsuming job...

I have looked into the code, this seems to be what picks up the "position-top" property for the IFRAMEs containing the "font-picker" and such menus

(from RTE_javascript.asp...)

(line 142)
document.getElementById(iframeWin).style.top = (getOffsetTop(buttonElement) + buttonElement.offsetHeight) + 'px';

(line 239)
function getOffsetTop(elm){
     var mOffsetTop = elm.offsetTop;
     var mOffsetParent = elm.offsetParent;
     while(mOffsetParent){
          mOffsetTop += mOffsetParent.offsetTop;
          mOffsetParent = mOffsetParent.offsetParent;
     }
     return mOffsetTop;
}

the variable 'buttonElement' or later 'elm' passed into the function being the menuitem in question, for example the image named 'fontname' for the font picker...


When the rest of the editor looks and does just what it should, I can not understand what in my stylesheet would cause this misplacement. If the editor picks up the position of the parent element, the image with id 'fontname' for instance, and this element is positioned correctly on the page, why is the Iframe that opens when a user clicks this image not placed correctly?? It IS placed with correct offset when it comes to space-from-the-left...

/Mattias
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2010 at 7:57pm
Hi msv (shortened for convenience sake)

If you like, and if Bruce cannot give you a specific, which I expect he will anyway), why not send a PM with a link so we can have a real look at this. I know myself that mixing style sheets can often cause an issue, and it will only take one thing, to muck it up
Back to Top
msvensson82 View Drop Down
Newbie
Newbie


Joined: 21 August 2010
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote msvensson82 Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2010 at 8:26pm
I sorted it out... sort of =) Thanks.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.