Wait, careful: In most Canvas-based libraries, add(child) adds to absolute coordinates. To simulate nesting, we manually offset.
.parent position: relative; width:200px; height:200px; .child position:absolute; top:10px; left:10px; 2.3.9 nested views codehs
: If your nested view isn't showing up, it's usually because it lacks a defined width and height , or the parent container is collapsed (size 0). careful: In most Canvas-based libraries
Need more help? Check your CodeHS discussion forum or review the "Graphics and Events" section of your textbook. Happy coding! we manually offset. .parent position: relative
A single vertical LinearLayout can’t handle the "[ Text A ] [ Text B ]" row. It can stack them vertically, but not place them side-by-side.
// event handling: event bubbles from item to list/app item.addEventListener('click', (e) => e.currentTarget.style.background = '#def'; console.log('Item clicked'); );