You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Milo van der Zee (JIRA)" <de...@myfaces.apache.org> on 2007/05/20 20:34:16 UTC
[jira] Created: (TOMAHAWK-1002) Allow the DIV containing the tabs
to contain a "class" attribute
Allow the DIV containing the tabs to contain a "class" attribute
----------------------------------------------------------------
Key: TOMAHAWK-1002
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1002
Project: MyFaces Tomahawk
Issue Type: Improvement
Components: Tabbed Pane
Affects Versions: 1.1.6-SNAPSHOT
Reporter: Milo van der Zee
Currently the div containing the tabs is 100% wide. This is a problem for me because I need some input field right next to the tabs. By adding the tabContentStyleClass to the DIV I can set the width and so allow the input fields to be accessed. Otherwise the DIV is on top of the input fields. z-index did not work...
The next fix was added to HtmlTabbedPaneRenderer.java in method writeTabsContents():
================
writer.startElement(HTML.DIV_ELEM, tabbedPane);
writer.writeAttribute(HTML.ID_ATTR, tab.getClientId(facesContext), null);
//START: Milo
String tabContentStyleClass = tabbedPane.getTabContentStyleClass();
if(tabContentStyleClass != null) {
writer.writeAttribute(HTML.CLASS_ATTR, tabContentStyleClass, null);
}
//END: Milo
// the inactive tabs are hidden with a div-tag
if (tabIdx != selectedIndex) {
================
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.