Home
last modified time | relevance | path

Searched refs:marginBottom (Results 1 - 2 of 2) sorted by relevance

/base/web/webview/ohos_nweb/include/
H A Dnweb_init_params.h281 const double marginBottom, const double marginRight, const double marginLeft, const bool shouldPrintBackground) in NWebPDFConfigArgsImpl()
282 : width_(width), height_(height), scale_(scale), marginTop_(marginTop), marginBottom_(marginBottom), in NWebPDFConfigArgsImpl()
280 NWebPDFConfigArgsImpl(const double width, const double height, const double scale, const double marginTop, const double marginBottom, const double marginRight, const double marginLeft, const bool shouldPrintBackground) NWebPDFConfigArgsImpl() argument
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dnapi_webview_controller.cpp359 double marginBottom = TEN_MILLIMETER_TO_INCH; in ParsePDFMarginConfigArgs() local
360 napi_get_named_property(env, preArgs, "marginBottom", &marginBottomObj); in ParsePDFMarginConfigArgs()
361 if (!NapiParseUtils::ParseDouble(env, marginBottomObj, marginBottom)) { in ParsePDFMarginConfigArgs()
363 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginBottom", "number")); in ParsePDFMarginConfigArgs()
366 marginBottom = (marginBottom >= height / HALF || marginBottom <= 0.0) ? 0.0 : marginBottom; in ParsePDFMarginConfigArgs()
388 return { marginTop, marginBottom, marginRight, marginLeft }; in ParsePDFMarginConfigArgs()

Completed in 14 milliseconds