- iframe.setBounds((Desktop.instance.getWidth() - width) / 2,
- (Desktop.instance.getHeight() - height) / 2, width, height);
+ iframe.setBounds(
+ Math.max(0, (Desktop.instance.getWidth() - width) / 2),
+ Math.max(0, (Desktop.instance.getHeight() - height) / 2),
+ width, height);