}
.v-accordion-item {
position: relative;
- zoom: 1;
+ display: inline-block;
+ width: 100%;
}
.v-accordion-item-caption {
overflow: visible;
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
- overflow: visible;
}
.#{$primaryStyleName}-item {
background-color: #fff;
- display: inline-block;
- width: 100%;
}
.#{$primaryStyleName}-item-caption {
height: 19px;
border-top: none;
}
.#{$primaryStyleName}-item-caption .v-caption {
- padding: 3px 0 0px 10px;
+ padding: 3px 0 3px 10px;
}
.#{$primaryStyleName}-item-open .#{$primaryStyleName}-item-caption {
background-image: url(../tabsheet/img/tabbar-bg-sel.png); /** sprite-ref: verticals; sprite-alignment: repeat */
border-top: 1px solid #c8cccd;
}
.#{$primaryStyleName}-item-caption .v-caption {
- padding: 7px 0 6px 31px;
- background: transparent url(img/collapsed-icon.png) no-repeat 18px 50%;
+ padding: 7px 0 4px 31px;
+ background: transparent url(img/collapsed-icon.png) no-repeat 18px 55%;
}
.#{$primaryStyleName}-item-open .#{$primaryStyleName}-item-caption {
color: #3b4b57;
}
.#{$primaryStyleName}-item-open .#{$primaryStyleName}-item-caption .v-caption {
background-image: url(img/expanded-icon.png);
- background-position: 17px 50%;
+ background-position: 17px 55%;
}
.#{$primaryStyleName}-item-first .#{$primaryStyleName}-item-caption {
border-top: none;
import com.vaadin.client.ComponentConnector;
import com.vaadin.client.ConnectorHierarchyChangeEvent;
import com.vaadin.client.UIDL;
+import com.vaadin.client.Util;
import com.vaadin.client.ui.SimpleManagedLayout;
import com.vaadin.client.ui.VAccordion;
import com.vaadin.client.ui.VAccordion.StackItem;
usedPixels += item.getCaptionHeight();
} else {
// This includes the captionNode borders
- usedPixels += item.getHeight();
+ usedPixels += Util.getRequiredHeight(item.getElement());
}
}
int rootElementInnerHeight = getLayoutManager().getInnerHeight(
protected void setup() {
HorizontalSplitPanel sp = new HorizontalSplitPanel();
sp.setWidth("100%");
- sp.setHeight("70px");
+ sp.setHeight("100px");
Accordion acc = new Accordion();
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="" />
+<title>com.vaadin.tests.components.accordion.AccordionInactiveTabSize</title>
+</head>
+<body>
+ <table cellpadding="1" cellspacing="1" border="1">
+ <thead>
+ <tr>
+ <td rowspan="1" colspan="3">com.vaadin.tests.components.accordion.AccordionInactiveTabSize</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/run/com.vaadin.tests.components.accordion.AccordionInactiveTabSize?restartApplication&theme=base</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>base</td>
+ </tr>
+ <tr>
+ <td>open</td>
+ <td>/run/com.vaadin.tests.components.accordion.AccordionInactiveTabSize?restartApplication&theme=runo</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>runo</td>
+ </tr>
+ <tr>
+ <td>open</td>
+ <td>/run/com.vaadin.tests.components.accordion.AccordionInactiveTabSize?restartApplication&theme=chameleon</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>chameleon</td>
+ </tr>
+ <tr>
+ <td>open</td>
+ <td>/run/com.vaadin.tests.components.accordion.AccordionInactiveTabSize?restartApplication&theme=liferay</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>liferay</td>
+ </tr>
+ </tbody>
+ </table>
+</body>
+</html>
\ No newline at end of file