Comments (5)
I can't reproduce it in vanilla/plain-js Uppy, dynamically setting width: '100%', height: '100%'
for Dashboard works just fine:
document.getElementById('myButton').addEventListener('click', () => {
uppy.getPlugin('Dashboard').setOptions({ width: '100%', height: '100%' });
});
I am updating properties on onInit and onChanges, like this
Could you please recreate your issue in
https://github.com/transloadit/uppy/blob/main/examples/angular-example/src/app/app.component.ts
Setup instructions are here https://github.com/transloadit/uppy/tree/main/examples/angular-example.
from uppy.
Couldn't run locally Angular example based on above links, I get errors during build, but I tried two other versions on my uppy project 3.24.0 and 3.25.0, but I get the same error "ResizeObserver loop completed with undelivered notifications".
from uppy.
Alright, then please change the following code in a way that creates the error in your project:
https://github.com/transloadit/uppy/blob/main/examples/angular-example/src/app/app.component.ts
I will compile it myself locally, and hopefully that gives me the "ResizeObserver loop completed with undelivered notifications"
error. Would be helpful to see exactly what you're doing onInit
and onChanges
.
from uppy.
I've updated the code:
export class AppComponent implements OnInit {
title = 'angular-example'
showInline = false
showModal = false
dashboardProps = {}
dashboardModalProps = {
target: document.body,
onRequestCloseModal: (): void => {
this.showModal = false
},
}
uppy = new Uppy({ debug: true, autoProceed: true })
ngOnInit(): void {
this.uppy
.use(Webcam)
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
.use(GoogleDrive, { companionUrl: 'https://companion.uppy.io' })
this.pushDashboardOptions();
}
pushDashboardOptions() {
this.dashboardProps = {
width: '100%',
height: '100%',
hideUploadButton: false,
proudlyDisplayPoweredByUppy: false,
disableStatusBar: false,
inline: true,
closeAfterFinish: false,
plugins: ['Webcam']
}
}
}
from uppy.
Couldn't run locally Angular example based on above links, I get errors during build
Tried our angular example on a new repo clone - it builds without errors for me. Maybe enabling corepack like mentioned in Contributing.md would make it work for you.
I've updated the code
Ran this code on a new build. In Firefox, it runs without the ResizeObserver loop completed with undelivered notifications
error. The width does get set to 100%:
I'm running Uppy 4.x (current main
branch in Uppy) - maybe this issue was fixed in the 4.x version.
Also - you mentioned .onChanges
- maybe that's where this error is stemming from for you. To ascertain that, I would need a full app.component.ts example recreating this issue from you.
Closing this ussue for now - please reopen if you manage to recreate this issue on current main
in app.component.ts.
from uppy.
Related Issues (20)
- Tus endpoint not being respected after initial request behind reverse proxy HOT 9
- i18n "Shared with me" etc HOT 1
- Allow streaming upload also for unknown length streams HOT 1
- @uppy/companion: include origin in dynamic customer credentials
- Using Vue2 to integrate uppy caused a strange mistake HOT 2
- aws-nodejs-example | Multipart complete api | Throws 400 bad requests. HOT 5
- title.value is not accessible inside uppy.upload in vue HOT 1
- Uncaught TypeError: Cannot read properties of null (reading 'postMessage') in Companion's Callback Endpoint HOT 10
- Fix TypeScript sins HOT 1
- v4: typescript error for `uppy.setFileState()`
- Typescript error for 'new Uppy().use(AwsS3, {})' HOT 2
- XHR plugin expects upload response to be a valid JSON HOT 8
- companionAllowedHosts is not implemented in RemoteSources preset
- Uppy companion server error HOT 4
- Uppy 4.0.5 error HOT 5
- getTemporarySecurityCredentials() docs for S3 missing
- `Complete` event is not fired if one or more files are removed before they are uploaded using XHRUpload
- ThumbnailGenerator: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.
- Paste from clipboard support on Drag & Drop module HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uppy.