Skip to content

Commit fbaa6ae

Browse files
Merge pull request #9647 from hongxuli01/develop
Fix dialog is truncating in normal view
2 parents 1c4566e + 9acef02 commit fbaa6ae

File tree

1 file changed

+8
-1
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-hdinsight-lib/src/main/kotlin/com/microsoft/azure/hdinsight/spark/console

1 file changed

+8
-1
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-hdinsight-lib/src/main/kotlin/com/microsoft/azure/hdinsight/spark/console/RunSparkScalaLocalConsoleAction.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,16 @@ class RunSparkScalaLocalConsoleAction : RunSparkScalaConsoleAction() {
129129
.libraries.firstOrNull { it.name?.endsWith(libraryCoord) == true }
130130

131131
private fun promptAndFix(libraryCoord: String,project: Project) {
132+
133+
val paddedLibraryCoord = if (libraryCoord.length < 60) {
134+
libraryCoord.padEnd(60, ' ')
135+
} else {
136+
libraryCoord
137+
}
138+
132139
val toFixDialog = object : ErrorWindow(
133140
project,
134-
"The library $libraryCoord is not in project dependencies, would you like to auto fix it?",
141+
"The library $paddedLibraryCoord is not in project dependencies, would you like to auto fix it?",
135142
"Auto fix dependency issue to confirm") {
136143
init {
137144
setOKButtonText("Auto Fix")

0 commit comments

Comments
 (0)