Discussion:
Changing Left Pane Width
(too old to reply)
Guinn
2007-12-19 20:35:01 UTC
Permalink
I would like to increase the width of the left pane in a default WSS 3.0
layout. I have activated the Site Hierarchy tree view, as you drill into the
hierarchy it becomes wide enough that you have to scroll horizontally.

Anyone know how to do this?

TIA.
--
Guinn
Gary A. Bushey
2007-12-20 13:39:00 UTC
Permalink
The only way I know of is to change the page layout for the page itself.
You can probably do this by changing the master page.
--
Gary A. Bushey
Microsoft Office SharePoint Server MVP
Post by Guinn
I would like to increase the width of the left pane in a default WSS 3.0
layout. I have activated the Site Hierarchy tree view, as you drill into the
hierarchy it becomes wide enough that you have to scroll horizontally.
Anyone know how to do this?
TIA.
--
Guinn
Guinn
2007-12-20 15:53:02 UTC
Permalink
Thanks. My understanding is that updates to WSS could overwrite my changes
to the master page. Is this correct? Is there a way to deploy this change
as a "feature"? Any guidance would be appreciated.
--
Guinn
Post by Gary A. Bushey
The only way I know of is to change the page layout for the page itself.
You can probably do this by changing the master page.
--
Gary A. Bushey
Microsoft Office SharePoint Server MVP
Post by Guinn
I would like to increase the width of the left pane in a default WSS 3.0
layout. I have activated the Site Hierarchy tree view, as you drill into the
hierarchy it becomes wide enough that you have to scroll horizontally.
Anyone know how to do this?
TIA.
--
Guinn
Guinn
2008-01-09 03:17:01 UTC
Permalink
In case anyone is interested, I did find the solution to this.

The minimum width of the left pane is set by a graphic in the default.master
file. The default.master is located in the following folder:

C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\GLOBAL

Look for the following line and change the value of 138 to whatever you want.

<tr><td colspan=2><asp:ContentPlaceHolder id="PlaceHolderNavSpacer"
runat="server"><IMG SRC="/_layouts/images/blank.gif" width=138 height=1
alt=""></asp:ContentPlaceholder></td></tr>

If appears to me that the left pane could get bigger if you had something
inside it that was wider, but this sets the minimum width.

In my case I was trying to make the left pane wider in order to make the
treeview more usable. However, the treeview is by default 150 pixels wide,
and it did not get wider when the left pane got wider, so I had to change it
also. Look for the following line and change the width attribute:

<SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScroll"
onscroll="javascript:_spRecordScrollPositions(this);" Style="overflow:
auto;height: 400px;width: 150px; ">

250px worked well for me.

The first line also exists in a number of other .master files, so it is
possible that some of them might also need to be changed, but so far I
haven't seen any problems.

Figuring this out was a bit of a pain! The heavy use of CSS combined with a
very dense HTML page made this a challenge.
--
Guinn
Post by Gary A. Bushey
The only way I know of is to change the page layout for the page itself.
You can probably do this by changing the master page.
--
Gary A. Bushey
Microsoft Office SharePoint Server MVP
Post by Guinn
I would like to increase the width of the left pane in a default WSS 3.0
layout. I have activated the Site Hierarchy tree view, as you drill into the
hierarchy it becomes wide enough that you have to scroll horizontally.
Anyone know how to do this?
TIA.
--
Guinn
Neil Mather
2010-10-04 11:10:11 UTC
Permalink
In addition, you can also set the NodeWrap property of the SPTreeView to True.
Post by Guinn
I would like to increase the width of the left pane in a default WSS 3.0
layout. I have activated the Site Hierarchy tree view, as you drill into the
hierarchy it becomes wide enough that you have to scroll horizontally.
Anyone know how to do this?
TIA.
--
Guinn
Post by Gary A. Bushey
The only way I know of is to change the page layout for the page itself.
You can probably do this by changing the master page.
--
Gary A. Bushey
Microsoft Office SharePoint Server MVP
Post by Guinn
Thanks. My understanding is that updates to WSS could overwrite my changes
to the master page. Is this correct? Is there a way to deploy this change
as a "feature"? Any guidance would be appreciated.
--
Guinn
Post by Guinn
In case anyone is interested, I did find the solution to this.
The minimum width of the left pane is set by a graphic in the default.master
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\GLOBAL
Look for the following line and change the value of 138 to whatever you want.
<tr><td colspan=2><asp:ContentPlaceHolder id="PlaceHolderNavSpacer"
runat="server"><IMG SRC="/_layouts/images/blank.gif" width=138 height=1
alt=""></asp:ContentPlaceholder></td></tr>
If appears to me that the left pane could get bigger if you had something
inside it that was wider, but this sets the minimum width.
In my case I was trying to make the left pane wider in order to make the
treeview more usable. However, the treeview is by default 150 pixels wide,
and it did not get wider when the left pane got wider, so I had to change it
<SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScroll"
auto;height: 400px;width: 150px; ">
250px worked well for me.
The first line also exists in a number of other .master files, so it is
possible that some of them might also need to be changed, but so far I
haven't seen any problems.
Figuring this out was a bit of a pain! The heavy use of CSS combined with a
very dense HTML page made this a challenge.
--
Guinn
Submitted via EggHeadCafe - Software Developer Portal of Choice
Book Review: Google Analytics
http://www.eggheadcafe.com/tutorials/aspnet/a855a620-50a8-487c-9fac-b85f8fda2442/book-review-google-analytics.aspx
Loading...