Lines Matching refs:screenFrame
141 BRect screenFrame;
146 screenFrame = screen.Frame();
151 screenFrame = screen.Frame();
153 if (!screenFrame.Contains(frame)) {
155 if (frame.Width() > screenFrame.Width())
156 frame.right -= frame.Width() - screenFrame.Width() + 10.0;
157 if (frame.Height() > screenFrame.Height())
158 frame.bottom -= frame.Height() - screenFrame.Height() + 30.0;
160 if (frame.right > screenFrame.right)
161 frame.OffsetBy(-(frame.right - screenFrame.right), 0.0);
162 if (frame.bottom > screenFrame.bottom)
163 frame.OffsetBy(0.0, -(frame.bottom - screenFrame.bottom));
164 if (frame.left < screenFrame.left)
165 frame.OffsetBy((screenFrame.left - frame.left), 0.0);
166 if (frame.top < screenFrame.top)
167 frame.OffsetBy(0.0, (screenFrame.top - frame.top));