+
diff --git a/src/lib/editor/editor.component.scss b/src/lib/editor/editor.component.scss
index 97ab0e7..2bc1484 100644
--- a/src/lib/editor/editor.component.scss
+++ b/src/lib/editor/editor.component.scss
@@ -53,8 +53,9 @@ flo-view {
top: 0;
bottom: 0;
right: 0;
- overflow: hidden;
+ overflow: auto;
color: #FFF;
+ background-color: #FFF;
}
/* Tooltip START */
diff --git a/src/lib/editor/editor.component.ts b/src/lib/editor/editor.component.ts
index 5c2caad..3ea3ea9 100644
--- a/src/lib/editor/editor.component.ts
+++ b/src/lib/editor/editor.component.ts
@@ -16,6 +16,8 @@ export interface VisibilityState {
children: Array
;
}
+const SCROLLBAR_SIZE = 17;
+
@Component({
selector: 'flo-editor',
templateUrl: './editor.component.html',
@@ -784,8 +786,8 @@ export class EditorComponent implements OnInit, OnDestroy {
const parentWidth = parent.innerWidth();
const parentHeight = parent.innerHeight();
this.fitToContent(this.gridSize, this.gridSize, this.paperPadding, {
- minWidth: parentWidth,
- minHeight: parentHeight,
+ minWidth: parentWidth - SCROLLBAR_SIZE,
+ minHeight: parentHeight - SCROLLBAR_SIZE,
allowNewOrigin: 'same'
});
}
@@ -802,7 +804,7 @@ export class EditorComponent implements OnInit, OnDestroy {
minScaleY: minScale,
maxScaleX: maxScale,
maxScaleY: maxScale,
- fittingBBox: {x: 0, y: 0, width: parentWidth, height: parentHeight}
+ fittingBBox: {x: 0, y: 0, width: parentWidth - SCROLLBAR_SIZE, height: parentHeight - SCROLLBAR_SIZE}
});
/**
* Size the canvas appropriately and allow origin movement
diff --git a/src/lib/palette/palette.component.html b/src/lib/palette/palette.component.html
index 6144155..124fb55 100644
--- a/src/lib/palette/palette.component.html
+++ b/src/lib/palette/palette.component.html
@@ -1,7 +1,7 @@
-
+
diff --git a/src/lib/palette/palette.component.scss b/src/lib/palette/palette.component.scss
index 89a4a6e..40fcee2 100644
--- a/src/lib/palette/palette.component.scss
+++ b/src/lib/palette/palette.component.scss
@@ -22,6 +22,13 @@
background-color: transparent;
}
+#palette-paper-container {
+ overflow-y: auto;
+ overflow-x: hidden;
+ background-color: white;
+ color: white;
+}
+
/* Joint JS paper for drawing palette -> canvas DnD visual feedback END */
/* Palette START */