-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings/SelectBox: New option descriptions not calculated for contextview margins & overflow #57447
Comments
@JacksonKearl 's internship is complete so it's yours if you want it 👍 |
@roblourens But I'll take it |
@roblourens |
Sorry, that's my fault. I'll make sure to loop you in on other dropdown changes. |
absolutely no sorry 's ! I was just surprised it broke. |
@chrmarti do we have enough issues with the |
I assume this '_sticky' was meant to be removed? private _dropDownPosition: AnchorPosition;
private detailsProvider: (index: number) => { details: string, isMarkdown: boolean };
private selectionDetailsPane: HTMLElement;
private _sticky: boolean = false; // for dev purposes only
constructor(options: string[], selected: number, contextViewProvider: IContextViewProvider, styles: ISelectBoxStyles, selectBoxOptions?: ISelectBoxOptions) {
this.toDispose = [];
this._isVisible = false;
this.selectBoxOptions = selectBoxOptions || Object.create(null); |
I think we can leave it, it's useful for development. The suggest widget has the same thing, which is probably what inspired it. |
@roblourens Do you always want the extended descriptions at the bottom of the list, including when we flip the list above? Do you have any maximum number of lines expected within the extended description? I have to contemplate how to calculate the space required for differing extended description heights. I will probably have to flip up based on the longest description for the list. |
No problem at all.
Yeah I think so... if putting them at the top is easier, that would work for me too.
Since these can be localized and come from an extension, they could be any length. Basing it off the longest description is fine. Or, give it some reasonably large maximum, like 10 lines, and just truncate after that. |
okay , unfortunately since the new expressions completely ignore calculations to change layout I have to figure out whatever compromise to determine flipping for the layout. I will come up with a first pass and run it by you. just as an aside, I'd like to mention it's a pleasure working on this stuff with you, VSC is pretty important to me and a great outlet, most importantly it's great to work with you guys. |
I included it in the last training, but it dropped out at the stage that checks the precision of the predictions for each label. I'll keep it in and eventually it will make the threshold. |
@roblourens |
Hey @cleidigh how is this going? What can I do to help? Do you think we'll be able to get it in today or tomorrow? |
Hi @roblourens |
I'd prefer today, tomorrow is ok, but we don't want to take any big changes after tomorrow. I can help debug if you can open a PR with what you have. I don't have any other settings issues I'm working on right now. |
okay one way or the other I will post something tonight and give you a progress report. |
@roblourens
I think we might need to consider two options, dynamic content at top or scroll the select up and always open to the bottom. |
@roblourens |
Thanks for the PR @cleidigh Since we are at the end of endgame week and only want to take fixes for very serious issues, I propose that we take a simpler fix for the glitchy behavior of some select boxes, and continue improving the layout of the select box with details next month. I pushed a simple fix that should restore the sizing of existing select boxes outside of the settings editor - I didn't realize this affected them. And it should make the select box + details in the settings editor look fine in most cases. It's still possible to get it to overlap the status bar or detach from its anchor element but I realize we need a more sophisticated fix like in your PR... Verification
|
Opened a new issue for the continuing work... |
Ref: #57304
The SelectBox custom drop-down calculates and manages margins for both bottom and top. It ensures
that there is always a margin above the status bar. It's
The new option extended descriptions added into the drop-down do not get included in the calculations
and therefore the drop down can overflow into the status bar.
@JacksonKearl - let me know if you want to take this or have me pick it up.
This screenshot shows a related issue: probably a calculation issue for a number of options to show -
The text was updated successfully, but these errors were encountered: