Skip to content

Commit 6df5f51

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fb_gradle_9.0.0
2 parents e4880e9 + c3dbb01 commit 6df5f51

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

CageUI/resources/web/CageUI/static/RoomBorder.svg

Lines changed: 3 additions & 3 deletions
Loading

CageUI/src/client/components/layoutEditor/Editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ const Editor: FC<EditorProps> = ({roomSize}) => {
295295
const updateItemType: RoomItemType = stringToRoomItem(parseWrapperId(draggedNodeId));
296296

297297
if (targetRect) {
298-
const cellX = Math.max(0,targetRect.x);
299-
const cellY = Math.max(0,targetRect.y);
298+
// update the found x and y coords with new cell coords if the object was outside the available layout range.
299+
const cellX = targetRect.x < SVG_WIDTH && targetRect.x > 0 ? targetRect.x : 0;
300+
const cellY = targetRect.y < SVG_HEIGHT && targetRect.y > 0 ? targetRect.y : 0;
300301

301302
let newId: string;
302303

CageUI/src/client/utils/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import { Modification, ModLocations, ModRecord, ModTypes } from '../types/typings';
2020

2121
export const CELL_SIZE = 30; // number of pixels of a cell for length/width
22-
export const SVG_WIDTH = 1290; // width of the layout svg
23-
export const SVG_HEIGHT = 810; // height of the layout svg
22+
export const SVG_WIDTH = 810; // width of the layout svg
23+
export const SVG_HEIGHT = 1290; // height of the layout svg
2424

2525
//TODO finish styles
2626
export const Modifications: ModRecord = {

WNPRC_EHR/src/org/labkey/wnprc_ehr/table/WNPRC_EHRCustomizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void addQueryFieldKeys(Set<FieldKey> keys)
197197
keys.add(new FieldKey(getBoundColumn().getFieldKey().getParent(), "updateTitle"));
198198
keys.add(new FieldKey(getBoundColumn().getFieldKey().getParent(), "taskid"));
199199
keys.add(new FieldKey(getBoundColumn().getFieldKey().getParent(), "formtype"));
200-
keys.add(FieldKey.fromParts("qcstate","label"));
200+
keys.add(FieldKey.fromParts("taskid","qcstate","label"));
201201
}
202202

203203
@Override

0 commit comments

Comments
 (0)