Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Imagemap goes haywire in IE8 if master page used (Read 5022 times)
James Edwards
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 6th, 2009
Imagemap goes haywire in IE8 if master page used
Dec 6th, 2009 at 2:58am
Print Post  
Hi,

I'm on .NET 3.5...  I'm using the VB.NET Behaviors sample included with the installer (which uses an imagemap-type diagram).  This works  perfectly fine in IE8... 

But the moment I assign default.aspx a master page (which has a header at the top).... 
The imagemap goes haywire (in IE8)..    

I can still draw arrows and objects , but they appear in the wrong place below my mouse cursor. It's like the imagemap failed to account for the extra header at the top.

This problem does not occur for Firefox + Google Chrome....  Can anyone help ?

Regards
Ed

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Imagemap goes haywire in IE8 if master page us
Reply #1 - Dec 7th, 2009 at 8:43am
Print Post  
Hi Ed,

We could not reproduce this - could you email the aspx and master files to support@mindfusion.eu? Are you using the standards or compatibility mode of IE8?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
James Edwards
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 6th, 2009
Re: Imagemap goes haywire in IE8 if master page us
Reply #2 - Dec 8th, 2009 at 9:55am
Print Post  
Hi Stoyo,

I think I found out what the problem was!  -

Once I remove this tag from my master page,  then the problem happens:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Is this tag required for the diagramming control to function correctly ? Why does it become like that when it's removed?

Regards
Ed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Imagemap goes haywire in IE8 if master page us
Reply #3 - Dec 8th, 2009 at 1:04pm
Print Post  
Hi Ed,

This tag specifies the required html version, and if it is missing, IE8 enters quirks mode. I suppose the MS Ajax library which we use to get correct html element coordinates might be expecting some features to be available when it detects IE8, but they are not when in quirks mode. "When there is an old DOCTYPE or when there is no DOCTYPE, IE renders it like IE5 would", and nobody supports IE5 nowadays Wink

Stoyan
  
Back to top
 
IP Logged
 
James Edwards
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 6th, 2009
Re: Imagemap goes haywire in IE8 if master page us
Reply #4 - Dec 9th, 2009 at 1:12am
Print Post  
Great to know stoyan,  many thanks! 

Btw, I have another quick question on how I can enable Ajax with the diagramming control, I'll post it up as a new thread.

Thanks again!
  
Back to top
 
IP Logged
 
James Edwards
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 6th, 2009
Re: Imagemap goes haywire in IE8 if master page us
Reply #5 - Dec 9th, 2009 at 9:58am
Print Post  
Hi Stoyan,

I would like to reopen this issue again - because by putting this tag in :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

What happens is the imagemap problem is now gone, but it gives me a new problem -   it's almost impossible to get the Diagramming control to fill up the screen,  ie.  width=100% height = 100%   (in both firefox + IE)

I've sent you my "Behaviors" sample project (in vb.net 3.5) to your e-mail for you to see this problem. 

If I remove the <DOCTYPE> tag from default.master,   then the control stretches very nicely to fit the screen horizontally and vertically (100%) ... but then it will cause the imagemap problem (for IE)

It's like I can only have one or the other, but not both. Is there any way I can achieve both ?

Thanks in advance
Regards
Edmund
  
Back to top
 
IP Logged
 
James Edwards
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 6th, 2009
Re: Imagemap goes haywire in IE8 if master page us
Reply #6 - Dec 9th, 2009 at 10:09am
Print Post  
A little bit more to add to the above:

It seems when I set the width or height of the .NET Diagramming control  to 100% ,  it will do an autosize on its own...  eg: if I drag a bubble to the edge of the control, it will autosize itself...

Its only when I set absolute pixel values for the width and height,  then the control's size will stay fixed.

In short, what I want to achieve is this :

1)  Get the Diagramming control to fill up the screen perfectly (at 100% width, 100% height), and stay fixed.

2) If the flowchart can't fit,  the scrollbars should appear in the Diagramming control,  not on the webpage.

3) To *not* have the imagemap problem in IE

Is all 3 above possible at the same time ?
Thanks
regards
Ed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Imagemap goes haywire in IE8 if master page us
Reply #7 - Dec 10th, 2009 at 6:25am
Print Post  
Hi Ed,

We haven't received this project, could you email it to support@mindfusion.eu? The autosze you mentioned in the 100% size case - it's not done by the control, but perhaps browsers auto-size the DiagramView's DIV that contains the generated diagram image, so the DIV gets as big as the image. I suppose if this can't be done by pure html layout, you'll have to set the DIV's width and height from JavaScript.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint