Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
对以下issue中提出的bug进行修复
[Bug Report]Modal组件 可拖拽状态下 设置宽度为百分比时窗口显示异常
问题复现
bug原因
Modal组件在可拖拽状态下,初始化时重复设置了Width属性,因此当宽度设置为固定值时没有错误,而设置为百分比时会将两个百分比相乘作为最终结果
而在窗口位置发生移动时,会将整体宽度设置为100%,此时表现正常
解决方法
由于需要初始化窗口位置,所以保留初始化时对整体宽度的设置,去除窗口宽度设置
在后续窗口位置发生移动时,在将整体宽度设置为100%时同时为窗口补充宽度设置