使用 wymsee imagepicker 在图库中选择图像时如何左对齐照片

How to left align photos when choosing image in gallery using wymsee imagepicker

多亏了 wymsee/imagePicker,我可以轻松地在使用 Onsen UI.

构建的应用程序中使用图像拾取功能

但后来我在不同平台上遇到了不一致 UI 问题,即照片在 iOS 平台上没有左对齐。

示例图片:Android & iOS alignment are not consistent

我们如何才能让两个平台都让 "Pick Photos" 图库中的图像左对齐,这可能吗?

我查看了插件的 objective-c 源代码,发现它使用了(对于 iOS)来自另一个名为 ELCImagePickerController. Inside the source code of this project you can find some references about alignment 的项目的一些 类 :

self.alignmentLeft = YES;
//...
if (self.alignmentLeft) {
    startX = 4;
//...

the same file inside the plugin.

中缺失

查看项目历史,我发现 a commit on october 2014, but related files inside the cordova plugin were added on january 2014! 中添加了左对齐选项。

因此,您可以自己更新 类(加上最终修复错误)并向插件存储库发出拉取请求,或者您可以要求作者更新插件。