Merge "ChangeScreen2: Highlight the opened right side popdown panel"
This commit is contained in:
commit
29562f109f
@ -102,6 +102,7 @@ public class ChangeScreen2 extends Screen {
|
||||
String label_may();
|
||||
String label_need();
|
||||
String replyBox();
|
||||
String selected();
|
||||
}
|
||||
|
||||
private final Change.Id changeId;
|
||||
|
@ -92,11 +92,11 @@ limitations under the License.
|
||||
cursor: pointer;
|
||||
height: 25px;
|
||||
border: none;
|
||||
border-left: 1px solid #fff;
|
||||
border-left: 2px solid #fff;
|
||||
background-color: trimColor;
|
||||
margin-right: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
margin: 0;
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
.popdown button div {
|
||||
padding-left: 6px;
|
||||
@ -105,6 +105,9 @@ limitations under the License.
|
||||
.popdown button div:after {
|
||||
content: " \25bc";
|
||||
}
|
||||
.popdown button.selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.headerTable {
|
||||
border-spacing: 0;
|
||||
|
@ -44,6 +44,7 @@ abstract class RightSidePopdownAction {
|
||||
|
||||
void show() {
|
||||
if (popup != null) {
|
||||
button.removeStyleName(style.selected());
|
||||
popup.hide();
|
||||
return;
|
||||
}
|
||||
@ -68,6 +69,7 @@ abstract class RightSidePopdownAction {
|
||||
@Override
|
||||
public void onClose(CloseEvent<PopupPanel> event) {
|
||||
if (popup == p) {
|
||||
button.removeStyleName(style.selected());
|
||||
popup = null;
|
||||
}
|
||||
}
|
||||
@ -75,6 +77,7 @@ abstract class RightSidePopdownAction {
|
||||
p.add(getWidget());
|
||||
p.showRelativeTo(relativeTo);
|
||||
GlobalKey.dialog(p);
|
||||
button.addStyleName(style.selected());
|
||||
popup = p;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user