ItEr37S16RFMaquetacionDesenhoAplicacionItEr36S18: Fixed problems with scroll and buttons in advanced allocation page

This commit is contained in:
Lorenzo Tilve 2009-12-07 11:50:54 +01:00 committed by Javier Moran Rua
parent 519eb1e28f
commit 3f2a146354
3 changed files with 14 additions and 7 deletions

View file

@ -376,7 +376,7 @@ public class AdvancedAllocationController extends GenericForwardComposer {
TimeTrackedTableWithLeftPane<Row, Row> timeTrackedTableWithLeftPane = new TimeTrackedTableWithLeftPane<Row, Row>(
getDataSource(), getColumnsForLeft(), getLeftRenderer(),
getRightRenderer(), timeTracker);
Clients.evalJavaScript("ADVANCE_ALLOCATIONS.listenToScroll();");
timeTracker.addZoomListener(new IZoomLevelChangedListener() {
@Override
public void zoomLevelChanged(ZoomLevel detailLevel) {
@ -385,6 +385,7 @@ public class AdvancedAllocationController extends GenericForwardComposer {
});
table = timeTrackedTableWithLeftPane.getRightPane();
leftPane = timeTrackedTableWithLeftPane.getLeftPane();
leftPane.setFixedLayout(true);
}
private void insertComponentsInLayout() {

View file

@ -177,7 +177,8 @@ button.z-button {
padding: 2px 1px 1px 2px;
}
.planner-command .z-button-cm {
.planner-command .z-button-cm,
.advancedallocationlayout .z-north-body .z-button-cm {
height: 24px;
padding: 2px;
}
@ -970,3 +971,7 @@ tr.z-tree-row-seld, tr.z-list-item-seld,
z-index: 2;
color: transparent;
}
.advancedassignmentdetails .hours {
min-width: 30px;
}

View file

@ -30,12 +30,13 @@
<borderlayout width="auto" apply="${advancedAllocationController}" class="advancedallocationlayout">
<north height="30px" border="0">
<hbox align="center">
<button label="${i18n:_('Accept')}" id="acceptButton" />
<button label="${i18n:_('Cancel')}" id="cancelButton" />
<button label="${i18n:_('Accept')}" id="acceptButton" class="planner-command" />
<button label="${i18n:_('Cancel')}" id="cancelButton" class="planner-command" />
<separator/>
<button label="${i18n:_('+')}" id="zoomIncrease"/>
<button label="${i18n:_('-')}" id="zoomDecrease"/>
${i18n:_('From')}: <datebox /> ${i18n:_('To')}: <datebox />
<button class="planner-icon" id="zoomIncrease"
image="/common/img/zoom_in.png" tooltiptext="${i18n:_('Zoom increase')}" />
<button class="planner-icon" id="zoomDecrease"
image="/common/img/zoom_out.png" tooltiptext="${i18n:_('Zoom decrease')}"/>
<div id="messages" />
</hbox>
</north>