Skip to content
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

Refactor, Documentation and Bug Fix: widgets/widgetWindow #2747

Merged
merged 10 commits into from
Jan 16, 2021

Conversation

ksraj123
Copy link
Member

@ksraj123 ksraj123 commented Jan 8, 2021

Scrolling in any widget window leads to errors in the console.
The issue originated from widgets/widgetWindow, closer inspection revealed that this file's porting to ES6 done in #2722 had several other issues.
This PR aims to fix bugs, properly port to ES6 and add jsDoc style documentation for widgetWindow .

scrolling console error in widget window

As always, please share feedback and suggestions. Thanks

@ksraj123
Copy link
Member Author

ksraj123 commented Jan 9, 2021

@meganindya Please have a look at this. Thanks

Copy link
Member

@meganindya meganindya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks fine, but there are some minor gliches. Probably not created by you; some were probably hidden due to previous errors.

I saw that there is something off with the full screen. Please investigate if you can. You could try out using all the widgets for testing sake.

*/
sendToCenter() {
const canvas = docById("myCanvas");
const fRect = this._frame.getBoundingClientRect();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined
    at sendToCenter (widgetWindows.js:359)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for this error was how the sendToCenter function was being used in the code elsewhere. Which led to wrong value of this in it. Binding the context in the constructor solved this issue.

Comment on lines 331 to 334
console.log("From WidgetWindow addButton");
console.log(`type of icon = ${typeof(icon)}`);
console.log(`type of iconSize = ${typeof(iconSize)}`);
console.log(`type of label = ${typeof(label)}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls remove these

@ksraj123
Copy link
Member Author

@meganindya Found an issue with the pitch slider widget in fullscreen mode. The slider was overflowing over other elements in fullscreen mode, it has been fixed.

pitch slider full screen issue

Please point out more issues or possible enhancements in the fullscreen mode? Thanks

Copy link
Member

@meganindya meganindya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

Copy link
Member

@meganindya meganindya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants