|
#1
|
|||
|
|||
|
Hi,
I have a strange problem, executing: Code:
isc.VLayout.create({
autoDraw:true,
id: "drawPaneLayout",
showEdges: true,
height: 500,
width: 400,
members: [
isc.DrawPane.create({
ID: "mainPane",
showEdges: true,
width: '100%',
height: '100%',
overflow: "hidden",
cursor: "auto",
canDrag:true,
drawItems: [
isc.DrawLabel.create({
left: 1,
top: 1,
contents: "Hello World"
})
]
})
]
});
But executing the same code in a HTML file: Code:
<HTML>
<HEAD>
<SCRIPT>var isomorphicDir="/isomorphic/";</SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Drawing.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_RichTextEditor.js></SCRIPT>
<SCRIPT SRC=/isomorphic/skins/Enterprise/load_skin.js></SCRIPT>
</HEAD>
<BODY>
<SCRIPT>
isc.VLayout.create({
autoDraw:true,
id: "drawPaneLayout",
showEdges: true,
height: 500,
width: 400,
members: [
isc.DrawPane.create({
ID: "mainPane",
showEdges: true,
width: '100%',
height: '100%',
overflow: "hidden",
cursor: "auto",
canDrag:true,
drawItems: [
isc.DrawLabel.create({
left: 1,
top: 1,
contents: "Hello World"
})
]
})
]
});
</SCRIPT>
</BODY>
</HTML>
Can you please give me a hint what I´m doing wrong? Greetings Thomas |
|
#2
|
|||
|
|||
|
ISC_Drawing should be loaded last out of that list - only ISC_Charts comes after.
|
|
#3
|
|||
|
|||
|
OK, I put ISC_Drawing at the last position like below. But it still does not show "Hello World".
Code:
<HTML>
<HEAD>
<SCRIPT>var isomorphicDir="/isomorphic/";</SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_RichTextEditor.js></SCRIPT>
<SCRIPT SRC=/isomorphic/skins/Enterprise/load_skin.js></SCRIPT>
<SCRIPT SRC=/isomorphic/system/modules/ISC_Drawing.js></SCRIPT>
</HEAD>
<BODY>
<SCRIPT>
isc.VLayout.create({
autoDraw:true,
id: "drawPaneLayout",
showEdges: true,
height: 500,
width: 400,
members: [
isc.DrawPane.create({
ID: "mainPane",
showEdges: true,
width: '100%',
height: '100%',
overflow: "hidden",
cursor: "auto",
canDrag:true,
drawItems: [
isc.DrawLabel.create({
left: 1,
top: 1,
contents: "Hello World"
})
]
})
]
});
</SCRIPT>
</BODY>
</HTML>
|
|
#4
|
|||
|
|||
|
We're seeing "Hello World" show up as expected. Can you try this just in a plain SDK with no customizations and outside the context of your application?
Also, load_skin.js does come after ISC_Drawing - it comes after all ISC_* modules. But it wouldn't cause this issue. |
|
#5
|
|||
|
|||
|
We have no customizations of the SmartClient code.
I found the solution for us. Setting autoDraw: false in the draw pane shows “Hello World”. The position of ISC_Drawing is arbitrary. |
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DrawPane doesn't display | barrettt | Smart GWT Technical Q&A | 3 | 17th May 2012 18:17 |
| Drawing Canvas | gsaxena | Smart GWT Technical Q&A | 41 | 8th Mar 2012 16:36 |
| Problems with FormItems | rainer_ac | Smart GWT Technical Q&A | 0 | 28th Jun 2011 07:21 |
| Keyboard scrolling problems with ListGrid and Chrome | AW | Smart GWT Technical Q&A | 3 | 28th Apr 2010 20:27 |
| GUI problems with showcase on Linux | mgbf | Smart GWT Technical Q&A | 2 | 29th Nov 2009 10:21 |