Keeping measurement's text always inside the image

This commit is contained in:
Bruno Alves de Faria committed 2017-08-22 18:48:28 -03:00
1 parent c678022bd9
commit edd6ff862d
2 files changed
+96 -5

No files matched your search

+2 -2
View File
@@ -136,9 +136,9 @@ OHIF.cornerstone.repositionTextBox = (eventData, measurementData, config) => {
const offset = {
x: [],
y: []
}
};
if(cornerAxis === 'x') {
if (cornerAxis === 'x') {
const offsetY = centerY ? 0 : halfBoxSizeY;
offset.x[-1] = centerX ? halfBoxSizeX : 0;