Revert the translateX/Y to be in dip

This commit is contained in:
Panayot Cankov
2017-04-24 11:47:21 +03:00
parent 25849a1425
commit e26032f5fe
12 changed files with 159 additions and 151 deletions

View File

@ -1,5 +1,5 @@
// Definitions.
import { View as ViewDefinition, Point, Size, Color } from ".";
import { View as ViewDefinition, Point, Size, Color, dip } from ".";
import { HorizontalAlignment, VerticalAlignment, Visibility, Length, PercentLength } from "../../styling/style-properties";
// Types.
@ -366,17 +366,17 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
this.style.rotate = value;
}
get translateX(): Length {
get translateX(): dip {
return this.style.translateX;
}
set translateX(value: Length) {
set translateX(value: dip) {
this.style.translateX = value;
}
get translateY(): Length {
get translateY(): dip {
return this.style.translateY;
}
set translateY(value: Length) {
set translateY(value: dip) {
this.style.translateY = value;
}