javascript - 使用 angular-modal-service 在 Firefox 中以全屏模式破坏图像
问题描述
当我单击full screen
按钮以在 Firefox 中以全屏模式查看图像时,未显示完整图像。仅显示图像的一部分。这在 Chrome 浏览器中运行良好。请找到以下代码和屏幕截图以获取损坏的图像和实际图像。
public initFullscreenModal = ():ng.IPromise<any> => this.ModalService
.showModal({
component: 'modalImageFullscreen',
bodyClass: 'angular-modal-service-active',
bindings: {
image: this.image
},
// This method is invoked when `ModalService.closeModals()` is called from within ModalService
preClose: (modal: IDavis.Modal, result: any) => {
// We need this in order to properly close the Bootstrap modal via `.modal('hide')`
modal.element.modal('hide');
}
})
.then( (modal: IDavis.Modal): void => {
// required for Bootstrap Modal
modal.element.modal('show');
})
.catch( (error: any) => {
console.error('imageController.initModal().ModalService.showModal().ERROR', error);
});
参考库:https ://github.com/dwmkerr/angular-modal-service#showmodal-options
解决方案
推荐阅读
- r - data.frame 函数给出错误“不同的行数”
- reactjs - Chakra ui gridTemplateAreas on mobile 额外渲染
- python - DataFrame' 对象没有属性 'text'
- reactjs - 如何加载 svg 并显示在与 expo 的本机反应中?
- reactjs - React Native:如何测试 `maxLength` 和 `keyboardType` 道具以及其他输入道具?
- r - 保留对具有多年数据的 ID 的观察
- python - 从 sqlalchemy 中的表中检索列名
- vb.net - 从字符串“预订日期”到类型“整数”的转换无效
- python - ModuleNotFoundError:没有名为“google.cloud”的模块 jupyter notbook python 3.8.0
- java - 使用 Spring Boot 从 2.10.0 升级到 2.11.0 后 Jackson Data Losing Long 类型信息