Keeping measurement's text always inside the image
This commit is contained in:
1 parent
c678022bd9
commit
edd6ff862d
2 files changed
+96
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user