You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fake_resize.js 903B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // make the App think you resized the window
  2. function dispatch_resize(store = APP.store) {
  3. if (!store){
  4. clog("nostore")
  5. return
  6. }
  7. // store.dispatch(clientResized_dev(innerWidth, innerHeight));
  8. store.dispatch({
  9. type: "CLIENT_RESIZED",
  10. clientHeight:innerHeight,
  11. clientWidth:innerWidth,
  12. });
  13. // clog("dispatch_resize")
  14. }
  15. // unused old fn to add pseudo videos
  16. function add_spans(n=1,xtra=0){
  17. var s = `
  18. <span class="pseudo_vid videocontainer"></span>
  19. `
  20. $(".pseudo_vid").remove()
  21. if (!xtra){
  22. n = n - APP.store.getState()["features/base/participants"].length
  23. }
  24. var k,v
  25. for (var i = 0; i < n; i++) {
  26. // Things[i]
  27. clog("..",i)
  28. $("#filmstripRemoteVideosContainer").append(s)
  29. }
  30. dispatch_resize()
  31. }
  32. fs_dec_list = [
  33. "resizeThumbnailsForHorizontalView",
  34. "resizeThumbnailsForVerticalView",
  35. // "resizeThumbnailsForTileView",
  36. ]
  37. dec_fns = {}