如果警报中包含太多文本,则将其剪切而不是滚动文本,甚至可以访问按钮。这是错误吗?我应该提出报告吗?怎么样?我正在使用Ionic 4 Beta 12
代码:
async showRules() {
const alert = await this.alertController.create({
header: 'Rules',
subHeader: `Brain Builder is up to date with the most recent research regarding IQ enhancement.
As the most recent research suggest, Brain Builder will increase the number of stimulus first (position, audio, color, etc.).
Once all stimuli have been mastered, the n-back will be increased.A blue square will be shown every three seconds, press the button ‘Position’ when you find that the actual position of the blue square matches with that of the previous one.
The position of the square is accompanied with the pronunciation of a number and the very same rule applies for the sound.
`,
buttons: ['OK'],
backdropDismiss: false
});
await alert.present();
}
答案 0 :(得分:0)
您已将大量内容放置在subheader
中,而不是message
中。试试:
async showRules() {
const alert = await this.alertController.create({
header: 'Rules',
message: `Brain Builder is up to date with the most recent research regarding IQ enhancement.
As the most recent research suggest, Brain Builder will increase the number of stimulus first (position, audio, color, etc.).
Once all stimuli have been mastered, the n-back will be increased.A blue square will be shown every three seconds, press the button ‘Position’ when you find that the actual position of the blue square matches with that of the previous one.
The position of the square is accompanied with the pronunciation of a number and the very same rule applies for the sound.
`,
buttons: ['OK'],
backdropDismiss: false
});
await alert.present();
}
子标题只是子标题,可能无法滚动。文档here