Lines Matching refs:screenFrame
96 BRect screenFrame = screen->Frame();
97 if (!screenFrame.Contains(frame)) {
99 if (frame.Width() > screenFrame.Width())
100 frame.right -= frame.Width() - screenFrame.Width() + 10.0;
101 if (frame.Height() > screenFrame.Height())
102 frame.bottom -= frame.Height() - screenFrame.Height() + 30.0;
104 if (frame.right > screenFrame.right)
105 frame.OffsetBy(-(frame.right - screenFrame.right), 0.0);
106 if (frame.bottom > screenFrame.bottom)
107 frame.OffsetBy(0.0, -(frame.bottom - screenFrame.bottom));
108 if (frame.left < screenFrame.left)
109 frame.OffsetBy((screenFrame.left - frame.left), 0.0);
110 if (frame.top < screenFrame.top)
111 frame.OffsetBy(0.0, (screenFrame.top - frame.top));