Skip to Content
author's profile photo Former Member
Former Member

How to change navigation panel default (initial) width?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 12:49 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 01:14 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Detlev Beutner

      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

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 02:28 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.