Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to auto-size TextField in a Toolbar?

If I had a the common's Toolbar with three controls placed in it (a Button1, TextField, & Button2), and the Toolbar is in a browser that can be resized and is 100% of the browser width. Is there a way to auto-size the TextField width to consume the available Toolbar width minus the to Buttons that are on the left and right of the TextField? Thus create some kind of binding or overload a function so the TextField.width = Toolbar.width - Buton1.width - Button2.width - somePadding during the layout phase.

Not what you were looking for? View more on this topic or Ask a question