cancel
Showing results for 
Search instead for 
Did you mean: 

How to change navigation panel default (initial) width?

Former Member
0 Kudos

Hi!

I want to change Navigation Panel default (initial) width. Default Framework Page, Desktop Innerpage and Navigation Panel & Content Area Layout have no this property. How i can make it? To use the custom layout is impossible (bad way), but navigation panel content, for example Detailed Navigation items, has a width bigger than Navigation Panel width. And in the Navigation Panel appears horizontal scrollbar. And it is no well.

Can anyone help me?

Regards.

Alexei Rylov.

Edited by: Alexei Rylov on Jan 31, 2008 2:08 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alexei,

Default width of navigation panel is set in JavaScript file inside the layout of the inner page. If you want to modify the width of navigation panel you should change the default value, which is 220px accordingly to your needs. Of course it means that you'll have to customize some code and the best way to do that is developing your own layout for inner page using the one provided by SAP. Firstly, get the par file or par.bak file called com.sap.portal.layouts.framework and create new project within it. Then in file WAandNavPanel.js modify value:

var defaultExpWidth = 220;

Now just create new par file and deploy it on the portal. Create new layout from the deployed par choosing WAandNavPanel (remember to check Object is template property). Then apply newly created layout into inner page under your framework page and set it as default.

Please be aware that .js files are cached on your local machine by your browser so before you start to test the solution, you should clear browser's cache.

Hope it helps,

Best Regards

Michal M.

Answers (2)

Answers (2)

Former Member
0 Kudos

Default width of the Navigation Panel is hardcoded in SAP javaScript files. Use custom Layouts.

Former Member
0 Kudos

Hallo, Michal.

Many thanks for answer. Your solution is very helpful, but i search other decision. I search for attribute or property wich i can edit easily. If this unique decision it is easier to make the Custom Layout.

Thank you very much.

Alexei Rylov

detlev_beutner
Active Contributor
0 Kudos

Hi Alexei,

This simply is not customizable. Michal has given you the position where this is hardcoded. The fact that this is hardcoded makes it obvious that it cannot be parameterized.

Hope it helps to clarify this

Detlev

Former Member
0 Kudos

Thanks, Detlev.

Very realistic comment! You have placed all points above "i". The question also consist in it. Insofar i can customize predefined pages, iViews and layouts. If they are not customizable then i close this thread.

Thanks

Alexei Rylov