ewmailing / IupEmscripten

Emscripten (native web browser) backend for IUP (Portable native-GUI Interface) [switch to Emscripten branch]
Other
10 stars 1 forks source link

IupLabel->ALIGNMENT #5

Open cmatzenbach opened 6 years ago

cmatzenbach commented 6 years ago

@ewmailing What conclusion did we reach on alignment? I have left, center, and right working, but not the vertical ones. Do we need to reach out to Scuri or are we leaving this as only aligning horizontally for now?

cmatzenbach commented 6 years ago

@ewmailing Another question - does alignment for label mean alignment of the text inside of the given space for the label widget, or alignment of the label widget in relation to other widgets around it?

ewmailing commented 6 years ago

I think Alignment refers to the space inside the widget. So if you provide an over-sized bounding box, the label should left/right/top/bottom/hcenter/vcenter inside that space based on setting.

Vertical alignment is expected to work. The question is how to do it. (Cocoa turned out to be a PITA, and there is one edge case that breaks horribly due to a system bug.) Your task is to figure out how to make it possible in the browser.