Popup size not the same in designer VS web browser

Hi everyone,

I created a popup with dimensions set to width: 400 and height: 210 in the Designer. However, when I open it in the web browser, the size doesn't match what I expected.

I reviewed the system.perspective.openPopup() function, but it doesn’t seem to reference size, so I assume the dimensions should follow what’s defined in the Designer.

Is there a way to ensure the popup respects the defined size when opened in a browser?

I've attached some screenshots to show the behavior.

Thank you in advance!

Best regards,
Gabriel


1 Like

Check that manual page again, note the dictionary:

position

keys are: left, top, right, bottom, width, height.

I'd recommend starting by setting all of those to 100, to determine how they function, and from there it should be more clear how to proceed.

You're absolutely right — my mistake! It does work as expected. I just read too quickly and overlooked it.

Thanks for the clarification! :slightly_smiling_face:

Best regards,
Gabriel

system.perspective.openPopup(
	id="{}-popup".format(equipment_name.replace(" ", "_")),
	view=path,
	title=unicode(title),
	params=pageParams,
	sessionId=sessionId,
	pageId=pageId,
	draggable=True,
	showCloseIcon=True,
	resizable=False,
	modal=False,
	overlayDismiss=False,
	position={'height':210,'width':400},
	viewportBound=True
		)
1 Like