mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-18 19:01:06 +02:00
ONOS-5622 fix the map Map selection dialog style problem
Change-Id: Iaafd49725dff74deade4dd7d28ee4e9b72604f27
This commit is contained in:
parent
1a129a029f
commit
fdd497c697
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package org.onosproject.ui;
|
package org.onosproject.ui;
|
||||||
|
|
||||||
|
import static com.google.common.base.Preconditions.checkState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a geographically-based map to be used in the user interface
|
* Represents a geographically-based map to be used in the user interface
|
||||||
* topology view. Instances of this class are immutable.
|
* topology view. Instances of this class are immutable.
|
||||||
@ -26,6 +28,8 @@ public class UiTopoMap {
|
|||||||
private final String desc;
|
private final String desc;
|
||||||
private final String filePath;
|
private final String filePath;
|
||||||
private final double scale;
|
private final double scale;
|
||||||
|
private static final int MAX_LENGTH = 32;
|
||||||
|
private static final String DES_EXC_LIM = "Description is too long";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -37,6 +41,7 @@ public class UiTopoMap {
|
|||||||
* @param scale map scale
|
* @param scale map scale
|
||||||
*/
|
*/
|
||||||
public UiTopoMap(String id, String desc, String filePath, double scale) {
|
public UiTopoMap(String id, String desc, String filePath, double scale) {
|
||||||
|
checkState(desc.length() <= MAX_LENGTH, DES_EXC_LIM);
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.desc = desc;
|
this.desc = desc;
|
||||||
this.filePath = filePath;
|
this.filePath = filePath;
|
||||||
|
@ -255,5 +255,5 @@ html[data-platform='iPad'] #topo-p-detail {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.map-list select {
|
.map-list select {
|
||||||
font-size: 20px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user