A GUI displays nine cards in a single vertical column inside a scrollable viewport. Each card is 64 px64\ \text{px}64 px high. There are 12 px12\ \text{px}12 px gaps between adjacent cards, plus 18 px18\ \text{px}18 px of padding above the first card and below the last. There are no other margins, borders or spacing.
The viewport is 300 px300\ \text{px}300 px high. A fixed footer overlaps its bottom 44 px44\ \text{px}44 px and hides anything underneath. The footer does not change the viewport's layout height or add space to the scrollable content.
The scroll offset is the content yyy-coordinate aligned with the viewport's top edge. Its current value is 210 px210\ \text{px}210 px. Increasing this offset moves document content upward. The toolkit allows offsets from zero to the content height minus the full viewport height.
Calculate the total content height, the maximum permitted scroll offset, and the smallest additional downward scroll movement needed to make the seventh card fully visible above the footer. Cards are numbered from the top. Give all three answers in px as exact whole numbers. A card edge may coincide with the boundary of the unobscured region.
Unlock full course notes by signing up
Allocate width above a row's minimum
A scheduling application's row contains, from left to right, a fixed 160 px label, a first input with minimum width 200 px, and a second input with minimum width 300 px. The row has 20 px padding at each end and two 20 px internal gaps.
The layout reserves these minimum widths first, then divides all additional width between the inputs using stretch weights 1 and 3, respectively. Both inputs fill their allocated widths and have no maximum width. No other margins or borders contribute to the calculation.
Find the minimum content width needed for the row. Then find the final width of each input when the content width is 1080 px. Give all three answers in px, to the nearest whole pixel.
Identify the reference origin for a GUI position
A graphical application displays a scrollable document inside a viewport. The viewport sits within the window's client area. A GUI inspector can report the same document point in several coordinate spaces.
Match each coordinate space to the origin used to measure its positions. Assume one display, with horizontal positions increasing rightward and vertical positions increasing downward.
Locate a button through nested containers
A desktop application places a panel at (48,36)(48,36)(48,36) relative to the window's client-area origin. Inside that panel, a row begins at (20,14)(20,14)(20,14) relative to the panel's origin. A button begins at (16,10)(16,10)(16,10) relative to the row's origin and has width 112 px112\ \text{px}112 px and height 32 px32\ \text{px}32 px.
All measurements use layout pixels, abbreviated px. Positions refer to top-left corners, with xxx increasing rightward and yyy increasing downward. There is no scrolling, scaling, border thickness or padding to account for. Treat rectangles as continuous layout regions: a right or bottom edge is the starting position plus the width or height, rather than the last occupied pixel.
Complete the table with exact integer coordinates relative to the window's client-area origin.
Decide which resizing proposals can satisfy the constraints
A settings form places a label beside one input. It requires 20 px left and right padding, a fixed 16 px gap, a label at least 140 px wide, and an input at least 200 px wide. The proposed content width is 380 px. Controls fill their allocated widths, and there are no other margins or borders.
Alternatively, the developer may stack the label above the input, retaining the same left and right padding. There is sufficient vertical space for that arrangement. Which statements correctly assess these proposals? Select all that apply.