Welcome Guest Search | Active Topics | Sign In | Register

TreeView and extra padding (spaces?) between line images Options
Abacus Financial Inc.
Posted: Monday, December 2, 2013 4:27:07 PM
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
Abacus Financial Inc.
Posted: Monday, December 2, 2013 4:34:12 PM
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
eo_support
Posted: Monday, December 2, 2013 5:03:28 PM
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!
Abacus Financial Inc.
Posted: Monday, December 2, 2013 9:05:28 PM
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
eo_support
Posted: Monday, December 2, 2013 10:01:32 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.