Skip to content

Commit

Permalink
set PopupProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jan 26, 2024
1 parent 4db288f commit 0e90f4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.compose.ui.window.Popup
import androidx.compose.ui.window.PopupProperties
import com.zoffcc.applications.trifa.Log
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -180,6 +181,7 @@ fun GroupSendMessage(focusRequester: FocusRequester, selectedGroupId: String?, s
val emoji_box_offset_x_px = 100.dp.DpAsPx.toInt()
val emoji_box_offset_y_px = -(emoji_box_height_dp + 10.dp).DpAsPx.toInt()
Popup(alignment = Alignment.TopCenter,
properties = PopupProperties(focusable = false, dismissOnClickOutside = true),
onDismissRequest = {},
offset = IntOffset(emoji_box_offset_x_px, emoji_box_offset_y_px)) {
Box(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ fun SendMessage(focusRequester: FocusRequester, selectedContactPubkey: String?,
val emoji_box_offset_x_px = 100.dp.DpAsPx.toInt()
val emoji_box_offset_y_px = -(emoji_box_height_dp + 10.dp).DpAsPx.toInt()
Popup(alignment = Alignment.TopCenter,
properties = PopupProperties(focusable = false, dismissOnClickOutside = true),
onDismissRequest = {},
offset = IntOffset(emoji_box_offset_x_px, emoji_box_offset_y_px)) {
Box(
Expand Down

0 comments on commit 0e90f4d

Please sign in to comment.