Norbi
06/03/2022, 12:06 PMmiguelsesma
06/03/2022, 2:18 PMexample-cef-compose
work. I have fixed most things but I'm still stuck in a problem with skiko-awt HardwareLayer, that is used to render the browser.
The problem is that that class is internal, so the code has no access to it. Any solution for that?
internal open class HardwareLayer(
externalAccessibleFactory: ((Component) -> Accessible)? = null
) : Canvas() {
Jan
06/04/2022, 10:49 PMLazyVerticalGrid(
columns = GridCells.Adaptive(246.dp),
contentPadding = PaddingValues(
start = 12.dp,
top = 16.dp,
end = 12.dp,
bottom = 16.dp
),
content = {
items(result.size) { index ->
//draw item
}
}
)
}
Now the scroll state of the grid is always like in the end or in the middle so it doen't start at the top and I don't know why.
Also how to save the scroll state when the lazyverticalgrid leaves the composition?spierce7
06/04/2022, 11:47 PMLazyVerticalGrid
. Is this in an external library?kenkyee
06/04/2022, 11:47 PMxiaobailong24
06/05/2022, 2:21 PMde.undercouch.gradle.tasks.download.org.apache.http.client.ClientProtocolException: Forbidden (HTTP status code: 403, URL: https://bintray.com/jetbrains/skija/download_file?file_path=jcef-runtime-macos.zip)
miguelsesma
06/06/2022, 9:51 AMexample-cef-compose
work. I'm trying to get the HardwareLayer component. As AppManager
no longer exist, I pass the window
from the App.kt to the browserView. The problem is that this window has only one component that is not a HardwareLayer.
Any idea of how to get the HardwareLayer?Kirill Grouchnikov
06/06/2022, 3:01 PMKirill Grouchnikov
06/06/2022, 4:44 PMdev703
is crashing for me on startup with https://github.com/JetBrains/compose-jb/issues/2101 - maybe there's a mismatch between the different modules somewhere?Slackbot
06/06/2022, 4:50 PMSiddarth R Iyer
06/07/2022, 12:41 PMeygraber
06/07/2022, 8:11 PMorangy
LayoutInfo
, e.g. from Window
• ability to get children of said LayoutInfo
, and since node and info is the same instance, just expose children
from node into the info interface
• ability to get the outer coordinates from LayoutInfo
, not affected by modifiers. coordinates
property is “content area” after paddings and such, and to properly hit-test and highlight the node I need outer coordinates (it’s all there in outerLayoutNodeWrapper, just needs to be exposed)
If we had this, we could build very nice tooling for ourselves. WDYT? Worth creating an issue, or is it too much into inner kitchen horrors?james
06/07/2022, 10:43 PMLucas
06/08/2022, 3:45 PMjava.lang.NoSuchMethodError: 'int androidx.compose.ui.unit.Constraints.getMaxWidth()'
at androidx.compose.ui.window.DesktopPopup_desktopKt$PopupLayout$6$composition$1$1.measure-3p2s80s(DesktopPopup.desktop.kt:184)
when trying to Expand a simple DropdownMenu. Using version 1.1.1
DropdownMenu(
expanded = viewModel.expanded.value,
onDismissRequest = { viewModel.expanded.value = false },
) {
DropdownMenuItem(onClick = { }) {
Text("A")
}
DropdownMenuItem(onClick = { }) {
Text("B")
}
DropdownMenuItem(onClick = { }) {
Text("C")
}
}
Any clues?Alexander Maryanovsky
06/09/2022, 10:30 AMModifier.scroll
seems to automatically keep the focused element in view. Very nice.Sebastian Kürten
06/09/2022, 3:00 PMantonarhipov
06/09/2022, 6:54 PMMohamed Darwish
06/11/2022, 3:44 AMeygraber
06/13/2022, 1:51 AMorg.jetbrains.compose
plugin and the Jetbrains compose artifacts (which should redirect to the Google artifacts).
I started writing some tests for it, but the compose artifacts aren't visible in the test code. For example, if I have implementation(compose.material)
, android.compose.material.Text
doesn't resolve in a test file in the IDE, even though it runs fine. Adding testImplementation(compose.material)
doesn't work either. I have to explicitly depend on the Google artifacts in order for the IDE to resolve the type.
I'm using Electric Eel latest alpha.Alexandre Brown
06/13/2022, 4:00 AMCody Mikol
06/13/2022, 10:50 PMdrawBehind
in conjunction with drawLine
to draw lines at a fixed distance to the right of the window. I've noticed that this distance is different between Mac and Linux. Is this a bug, or is there a more precise way to set this distance?Alexander Maryanovsky
06/14/2022, 2:03 PMval value by stateFlow.collectAsState()
println("Value: $value")
Text(
text = value
)
and a new value is getting printed, but the old value is displayed until something else in the window is redrawn.Emmanuel
06/15/2022, 1:35 PMtieskedh
06/16/2022, 10:49 AMAlexander Suraphel
06/16/2022, 2:54 PMandylamax
06/19/2022, 11:49 AMspierce7
06/19/2022, 4:00 PMTlaster
06/20/2022, 2:51 AMMichael Paus
06/20/2022, 12:02 PM