|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
Hi,
I've been trying to combat this issue for several hours and can't seem to isolate it. I know it has to do with the master page I'm using, I just can't pinpoint it.
To reproduce the issue, I created a vanilla ASP .NET framework 4 web site (not the empty one, but the generic, populated one) and pasted the TreeView control inside the main content placeholder. This results in mysterious 3 px padding between the dotted lines (line images) of the tree nodes. Can you please help me out - it's driving me nuts?
Thanks,
Dmitriy
|
|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
One more thing: the problem persists even if I comment out
Code: HTML/ASPX
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
in the Site.master
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We have confirmed this to be a problem. Please change the following line in your site.master:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Change it to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This should temporarily fix the problem for you. We are also looking into this further to see if we can change our code so that even if under strict mode the TreeView will still render fine.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
Thanks a lot, that fixed it!
Should I expect any changes by switching strict to transitional? Any code adjustments needed? In other words, should I create a custom copy of the master page and leave the original copy with the "strict" doctype?
Thanks,
Dmitriy
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
You can search online for the difference between strict and transitional. They do affect things in your page. However depending on your page content, it may not cause any difference for your page.
Thanks!
|
|