Hi Isomorphic,
I'm was trying to get rid of an annoying behaviour of empty LinkItems/StaticTextItems, where a click in those issues a reload of the page in a new tab.
In the end it came down to my old setting of applyHeightToTextBox: true, that I never removed in my code.
I assume that after this is now false by default because of the framework changes done for this thread in #12, it should stay false for any LinkItem, correct?
If not, please see this testcase (v12.0p_2021-02-23), where setting applyHeightToTextBox: true causes a linked empty space. If the value then is null, the empty href opens a new window with the current URL.

Best regards
Blama
I'm was trying to get rid of an annoying behaviour of empty LinkItems/StaticTextItems, where a click in those issues a reload of the page in a new tab.
In the end it came down to my old setting of applyHeightToTextBox: true, that I never removed in my code.
I assume that after this is now false by default because of the framework changes done for this thread in #12, it should stay false for any LinkItem, correct?
If not, please see this testcase (v12.0p_2021-02-23), where setting applyHeightToTextBox: true causes a linked empty space. If the value then is null, the empty href opens a new window with the current URL.
Code:
isc.DynamicForm.create({
ID: "form1",
titleOrientation: "top",
canEdit: false,
width: 620,
colWidths: ["*", "*"],
fields: [
{name: "text1", title:"Text", type:"text", hint: "A plain text field", wrapHintText: false,
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
{name: "link2", title:"LinkItem aHTTB true", type:"LinkItem", value:"https://forums.smartclient.com/", readOnlyDisplay: "static", applyHeightToTextBox: true,
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
{name: "text2", title:"Text", type:"text", hint: "A plain text field", wrapHintText: false,
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
{name: "link2", title:"LinkItem no aHTTB", type:"LinkItem", value:"https://forums.smartclient.com/", readOnlyDisplay: "static",
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
{name: "text3", title:"Text", type:"text", hint: "A plain text field", wrapHintText: false,
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
{name: "link3", title:"LinkItem aHTTB true", type:"LinkItem", readOnlyDisplay: "static", applyHeightToTextBox: true,
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
{name: "text4", title:"Text", type:"text", hint: "A plain text field", wrapHintText: false,
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
{name: "link4", title:"LinkItem no aHTTB", type:"LinkItem", readOnlyDisplay: "static",
icons: [{
name: "tel",
src: "blank",
inline: true,
text: "✆",
baseStyle: "telIcon"
}]},
]
});
Best regards
Blama
Comment