Панель стыковки Autodesk Forge с горизонтальной прокруткой - PullRequest
0 голосов
/ 14 декабря 2018

Есть ли возможность добавить горизонтальную прокрутку в контейнер прокрутки, предоставляемый viewerAPI?

Best,

OwnDockingPanel.prototype = Object.create(Autodesk.Viewing.UI.DockingPanel.prototype);
OwnPanel.prototype.constructor = OwnDockingPanel;
OwnDockingPanel.prototype.initialize = function () {
  this.title = this.createTitleBar(this.titleLabel || this.container.id);
  // id für titel of panel erstellen
  this.title.id = this.container.id + "_" + this.titleLabel;
  this.container.appendChild(this.title);

  this.container.appendChild(this.content);
  this.initializeMoveHandlers(this.container);

  this.closer = this.createCloseButton();
  this.title.appendChild(this.closer);

  var op = { left: true, heightAdjustment: 45, marginTop: 0 };
  this.scrollcontainer = this.createScrollContainer(op);
  $(this.scrollContainer).append(htmlContent);

  this.footer = this.createFooter();

  this.initializeMoveHandlers(this.title);
  this.initializeCloseHandler(this.closer);
};

1 Ответ

0 голосов
/ 14 декабря 2018

Просто примените следующий стиль к контейнеру:

container.style.overflowY = "scroll"

...