【问题标题】:Autodesk Forge Docking Panel Horizontal ScrollAutodesk Forge 停靠面板水平滚动
【发布时间】:2019-05-15 12:17:15
【问题描述】:

是否可以通过 viewerAPI 向滚动容器添加水平滚动?

最好的,

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);
};

【问题讨论】:

    标签: autodesk-forge autodesk-viewer forge


    【解决方案1】:

    只需将以下样式应用于容器:

    container.style.overflowY = "scroll"

    【讨论】:

    • 它应该在 Autodesk 提供的 Scroll Container 中。如果没有,设计会改变..
    猜你喜欢
    • 2020-08-06
    • 1970-01-01
    • 2012-03-14
    • 1970-01-01
    • 2015-06-28
    • 2011-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多